Omnibus commited on
Commit
5ed2171
·
verified ·
1 Parent(s): 4850ce5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -13
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
- function setTheme(themeName) {
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)