set initial theme

This commit is contained in:
John Bowdre 2024-08-16 17:44:46 -05:00
parent f0b675cddc
commit 222f1276c5

View file

@ -37,4 +37,6 @@ window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e)
const newTheme = e.matches ? 'dark' : 'light';
setTheme(newTheme);
}
});
});
setTheme(getPreferredTheme());