Baseta commited on
Commit
263ac53
·
verified ·
1 Parent(s): 561e9e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1486,7 +1486,8 @@ function refresh() {
1486
  const url = new URL(window.location);
1487
 
1488
  if (url.searchParams.get('__theme') !== 'dark') {
1489
- url.searchParams.set('__theme', 'dark');
 
1490
  window.location.href = url.href;
1491
  }
1492
  }
 
1486
  const url = new URL(window.location);
1487
 
1488
  if (url.searchParams.get('__theme') !== 'dark') {
1489
+ document.body.classList.add("dark");
1490
+ url.searchParams.set('__theme', 'dark');
1491
  window.location.href = url.href;
1492
  }
1493
  }