summaryrefslogtreecommitdiffstats
path: root/assets/js/themes.js
diff options
context:
space:
mode:
authorChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com>2023-04-02 16:42:46 -0400
committerChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com>2023-04-02 16:42:46 -0400
commitdc929be1983708c917b052ab66e55f901f196266 (patch)
tree4427e106dcd218704f29640ce44b1883dc60be1f /assets/js/themes.js
parent5767344746fb9806e57cacb36ddc66ee2eaffd9e (diff)
parent8db2a93827a4e27a55a9095be15083ea68cdd571 (diff)
downloadinvidious-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.js4
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';
}
}