File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ def preload_color_theme():
113113 const systemPreference = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
114114 const resolvedTheme = theme === "system" ? systemPreference : theme;
115115
116-
117116 // Apply theme immediately - blocks until complete
118117 // Use classList to avoid overwriting other classes
119118 document.documentElement.classList.remove("light", "dark");
@@ -123,12 +122,10 @@ def preload_color_theme():
123122 } catch (e) {
124123 // Fallback to system preference on any error (resolve "system" to actual theme)
125124 const fallbackTheme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
126-
127125 document.documentElement.classList.remove("light", "dark");
128126 document.documentElement.classList.add(fallbackTheme);
129127 document.documentElement.style.colorScheme = fallbackTheme;
130128 }
131-
132129}
133130"""
134131
You can’t perform that action at this time.
0 commit comments