summaryrefslogtreecommitdiffstats
path: root/assets/js/themes.js
diff options
context:
space:
mode:
authormeow <woem>2022-04-20 12:49:05 +0300
committermeow <woem>2022-04-25 10:15:57 +0300
commit7940e91cbe537689791c376e3c33bac65511d66e (patch)
treeadf4359f7e20fcfdf5401c3a3beeee9bda7691d1 /assets/js/themes.js
parent577a2356a03532517ae2f996845cc27df38fce99 (diff)
downloadinvidious-7940e91cbe537689791c376e3c33bac65511d66e.tar.gz
invidious-7940e91cbe537689791c376e3c33bac65511d66e.tar.bz2
invidious-7940e91cbe537689791c376e3c33bac65511d66e.zip
single quotes
Diffstat (limited to 'assets/js/themes.js')
-rw-r--r--assets/js/themes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/assets/js/themes.js b/assets/js/themes.js
index 2f4680c7..4dabcfc0 100644
--- a/assets/js/themes.js
+++ b/assets/js/themes.js
@@ -3,7 +3,7 @@ var toggle_theme = document.getElementById('toggle_theme');
toggle_theme.href = 'javascript:void(0);';
toggle_theme.addEventListener('click', function () {
- var dark_mode = document.body.classList.contains("light-theme");
+ var dark_mode = document.body.classList.contains('light-theme');
var url = '/toggle_theme?redirect=false';
var xhr = new XMLHttpRequest();
@@ -49,9 +49,9 @@ function scheme_switch (e) {
}
} catch {}
if (e.matches) {
- if (e.media.includes("dark")) {
+ if (e.media.includes('dark')) {
set_mode(true);
- } else if (e.media.includes("light")) {
+ } else if (e.media.includes('light')) {
set_mode(false);
}
}