diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2023-03-31 22:43:23 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2023-03-31 22:43:23 +0200 |
| commit | 9e82e6fc1ba161245d1e36bc8422d94ec9b16829 (patch) | |
| tree | e8b86e6359340e0a81598dcfa1f42cfed2c74178 /assets/js | |
| parent | ef6eea3a652ed29dd44661f8b0d5a0eab3a73861 (diff) | |
| parent | 1aaf290814e4737142c382c148ede816ca1a5df2 (diff) | |
| download | invidious-9e82e6fc1ba161245d1e36bc8422d94ec9b16829.tar.gz invidious-9e82e6fc1ba161245d1e36bc8422d94ec9b16829.tar.bz2 invidious-9e82e6fc1ba161245d1e36bc8422d94ec9b16829.zip | |
Handle auto theme correctly with the manual toggle (#3521)
Diffstat (limited to 'assets/js')
| -rw-r--r-- | assets/js/themes.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/js/themes.js b/assets/js/themes.js index 76767d5f..84a9f6d9 100644 --- a/assets/js/themes.js +++ b/assets/js/themes.js @@ -22,9 +22,11 @@ function setTheme(theme) { if (theme === THEME_DARK) { toggle_theme.children[0].className = 'icon ion-ios-sunny'; document.body.className = 'dark-theme'; - } else { + } else if (theme === THEME_LIGHT) { toggle_theme.children[0].className = 'icon ion-ios-moon'; document.body.className = 'light-theme'; + } else { + document.body.className = 'no-theme'; } } |
