:boom: [Fix] Load dark theme after window is loaded
Browse files
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");
|