Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,19 +59,7 @@ def run_script(url: str, height: int, width: int, check_b,check_h):
|
|
| 59 |
print (page.text)
|
| 60 |
|
| 61 |
js="""
|
| 62 |
-
|
| 63 |
-
localStorage.setItem('theme', themeName);
|
| 64 |
-
document.documentElement.className = themeName;
|
| 65 |
-
}
|
| 66 |
-
function toggleTheme() {
|
| 67 |
-
console.log(localStorage.getItem('theme'))
|
| 68 |
-
if (localStorage.getItem('theme') === 'theme-dark'){
|
| 69 |
-
setTheme('theme-light');
|
| 70 |
-
} else {
|
| 71 |
-
setTheme('theme-dark');
|
| 72 |
-
}
|
| 73 |
-
};
|
| 74 |
-
toggleTheme()
|
| 75 |
"""
|
| 76 |
|
| 77 |
driver.execute_script(js)
|
|
|
|
| 59 |
print (page.text)
|
| 60 |
|
| 61 |
js="""
|
| 62 |
+
localStorage.setItem('theme', 'gab-black');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
"""
|
| 64 |
|
| 65 |
driver.execute_script(js)
|