Re: News review in dark mode

From: Dave Page <dpage(at)pgadmin(dot)org>
To: "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>
Cc: Álvaro Herrera <alvherre(at)kurilemu(dot)de>, PostgreSQL WWW <pgsql-www(at)lists(dot)postgresql(dot)org>
Subject: Re: News review in dark mode
Date: 2025-11-28 08:55:39
Message-ID: CA+OCxoz1oTcN9sJ4nAUwuvqPwr4yskZEYDVeyaCBctf-5tnqZg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-www

On Thu, 27 Nov 2025 at 16:04, Jonathan S. Katz <jkatz(at)postgresql(dot)org> wrote:

> On 11/26/25 9:50 AM, Álvaro Herrera wrote:
> > On 2025-Nov-26, Dave Page wrote:
> >
> >> It's bugged me for ages that the news preview in dark mode has been
> broken
> >> forever. Here's a patch to fix that, along with before/after
> screenshots.
> >
> > Oh, yes _please_, thank you very much.
>
> +1 for the feature.
>
> Code overall looks fine to me. I'd prefer if we could make the
> "try/catch" block be more discerning about opting to ignore the
> Cross-Origin error, but given the contents of the try block are benign,
> I wouldn't block the patch on that.
>

Thanks - this has been pushed with a minor tweak to the catch block:

} catch (e) {
/* Only ignore SecurityError/cross-origin errors, rethrow
others */
if (e.name !== 'SecurityError') {
throw e;
}
}

--
Dave Page
pgAdmin: https://www.pgadmin.org
PostgreSQL: https://www.postgresql.org
pgEdge: https://www.pgedge.com

In response to

Browse pgsql-www by date

  From Date Subject
Next Message Dave Page 2025-11-28 09:09:19 Re: Button alignment on hamburger menu
Previous Message Jonathan S. Katz 2025-11-27 16:10:40 Re: Button alignment on hamburger menu