Minor bugfix to ensure auto theming works.

master
David Corry 4 years ago
parent ac47d9536e
commit bcbcea96b7

@ -33,7 +33,7 @@ function setupTheming() {
// Listen to system changes in theme
window.matchMedia("(prefers-color-scheme: dark)").addListener(() => {
if (preferredTheme != "auto") { return; }
if (preferredTheme && preferredTheme != "auto") { return; }
updateTheme("auto");
});

Loading…
Cancel
Save