Update app.py
Browse files
app.py
CHANGED
@@ -1484,10 +1484,10 @@ def zip_downloader(model):
|
|
1484 |
js_func = """
|
1485 |
function refresh() {
|
1486 |
const url = new URL(window.location);
|
1487 |
-
|
|
|
1488 |
if (url.searchParams.get('__theme') !== 'dark') {
|
1489 |
-
|
1490 |
-
url.searchParams.set('__theme', 'dark');
|
1491 |
window.location.href = url.href;
|
1492 |
}
|
1493 |
}
|
|
|
1484 |
js_func = """
|
1485 |
function refresh() {
|
1486 |
const url = new URL(window.location);
|
1487 |
+
document.getElementsByTagName('body')[0].classList.add('dark');
|
1488 |
+
document.body.classList.add("dark");
|
1489 |
if (url.searchParams.get('__theme') !== 'dark') {
|
1490 |
+
url.searchParams.set('__theme', 'dark');
|
|
|
1491 |
window.location.href = url.href;
|
1492 |
}
|
1493 |
}
|