feat: default to light theme on zeropost.ru
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ const themeInitScript = `
|
||||
(function() {
|
||||
try {
|
||||
var saved = localStorage.getItem('theme');
|
||||
var theme = saved || (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
|
||||
var theme = saved || 'light';
|
||||
if (theme === 'dark') document.documentElement.classList.add('dark');
|
||||
} catch(e) {}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user