Hacker News new | ask | show | jobs
by CSSer 1571 days ago
I found a bug. If you visit a page with a REPL, the REPL will always use the dark mode style on a subsequent visit regardless of the saved theme value in localStorage. To see this in action visit this page[0], toggle the theme to light (or dark and back again), and then do a refresh. When you toggle the theme to light, the REPL will update accordingly, but this doesn't persist after the refresh. Anyone know who I should tell about this?

[0]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Correction: it only stays dark for me because my initial visit used dark mode. If your initial visit uses light mode, it will stay light even if you later choose dark mode.