|
|
|
|
|
by meribold
715 days ago
|
|
There's one more detail along the lines of theme changes in other tabs and theme preference changes from the OS/browser: activating the correct theme following history navigation. When I navigate to another page of the author's site, change the theme from light to dark, and then use my browser's back button, I get the light theme again. On my own site I use the `pageshow` event to fix this (https://github.com/meribold/meribold.org/blob/afe6885/_inclu...). The extra effort is only needed on Firefox and Safari, though. Chromium already handles this somehow. |
|