Hansimov commited on
Commit
1cc6a54
·
1 Parent(s): d4807f3

:boom: [Fix] Load dark theme after window is loaded

Browse files
Files changed (1) hide show
  1. components/buttons_binder.js +1 -1
components/buttons_binder.js CHANGED
@@ -352,7 +352,7 @@ class AvailableModelsSelectBinder {
352
  class DarkThemeToggleButtonBinder {
353
  constructor() {
354
  this.storage_key = "theme";
355
- this.set_theme();
356
  }
357
  bind() {
358
  const toggle_button = $("#dark-theme-toggle-button");
 
352
  class DarkThemeToggleButtonBinder {
353
  constructor() {
354
  this.storage_key = "theme";
355
+ window.onload = () => this.set_theme();
356
  }
357
  bind() {
358
  const toggle_button = $("#dark-theme-toggle-button");