Skip to content

Commit 9db000f

Browse files
committed
less diff
1 parent 1b8654f commit 9db000f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

reflex/utils/misc.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)