diff options
| author | ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> | 2023-04-02 16:42:46 -0400 |
|---|---|---|
| committer | ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> | 2023-04-02 16:42:46 -0400 |
| commit | dc929be1983708c917b052ab66e55f901f196266 (patch) | |
| tree | 4427e106dcd218704f29640ce44b1883dc60be1f /assets/js/themes.js | |
| parent | 5767344746fb9806e57cacb36ddc66ee2eaffd9e (diff) | |
| parent | 8db2a93827a4e27a55a9095be15083ea68cdd571 (diff) | |
| download | invidious-dc929be1983708c917b052ab66e55f901f196266.tar.gz invidious-dc929be1983708c917b052ab66e55f901f196266.tar.bz2 invidious-dc929be1983708c917b052ab66e55f901f196266.zip | |
Merge branch 'master' into fix-shorts
Diffstat (limited to 'assets/js/themes.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'; } } |
