summaryrefslogtreecommitdiffstats
path: root/assets/js/themes.js
diff options
context:
space:
mode:
authorGavin <57272374+thtmnisamnstr@users.noreply.github.com>2023-04-03 17:09:34 -0700
committerGitHub <noreply@github.com>2023-04-03 17:09:34 -0700
commitc421f1f205eba08ca38b70833a9cc3aec72df36f (patch)
tree91ec4b9e52aa766aaef412d83c3dd477e9aae39a /assets/js/themes.js
parentfffdaa1410db7f9b5c67b1b47d401a2744e7b220 (diff)
parent8db2a93827a4e27a55a9095be15083ea68cdd571 (diff)
downloadinvidious-c421f1f205eba08ca38b70833a9cc3aec72df36f.tar.gz
invidious-c421f1f205eba08ca38b70833a9cc3aec72df36f.tar.bz2
invidious-c421f1f205eba08ca38b70833a9cc3aec72df36f.zip
Merge branch 'iv-org:master' into youtube-playlist-import
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';
}
}