Spaces:
Runtime error
Runtime error
Update theme_dropdown.py
Browse files- theme_dropdown.py +1 -1
theme_dropdown.py
CHANGED
@@ -44,7 +44,7 @@ def create_theme_dropdown():
|
|
44 |
f"""
|
45 |
(theme) => {{
|
46 |
if (!document.querySelector('.theme-css')) {{
|
47 |
-
var theme_elem = document.createElement('
|
48 |
theme_elem.classList.add('theme-css');
|
49 |
document.head.appendChild(theme_elem);
|
50 |
}} else {{
|
|
|
44 |
f"""
|
45 |
(theme) => {{
|
46 |
if (!document.querySelector('.theme-css')) {{
|
47 |
+
var theme_elem = document.createElement('style');
|
48 |
theme_elem.classList.add('theme-css');
|
49 |
document.head.appendChild(theme_elem);
|
50 |
}} else {{
|