aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-01-26 18:35:49 +0000
committerMario <mario@mariovavti.com>2023-01-26 18:35:49 +0000
commit94b26e1e66113d1936aa6f1b944a3161b99e8750 (patch)
tree623bd507ed15a68dd095213e78389125c386a692 /view/theme/redbasic/js
parenta2fc2e776ae0e77a84612a7ca33d6bd3255d5fc6 (diff)
downloadvolse-hubzilla-94b26e1e66113d1936aa6f1b944a3161b99e8750.tar.gz
volse-hubzilla-94b26e1e66113d1936aa6f1b944a3161b99e8750.tar.bz2
volse-hubzilla-94b26e1e66113d1936aa6f1b944a3161b99e8750.zip
redbasic: fix regression
Diffstat (limited to 'view/theme/redbasic/js')
-rw-r--r--view/theme/redbasic/js/redbasic.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 54d683ce7..b7036262d 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -5,10 +5,10 @@
let redbasic_dark_mode = localStorage.getItem('redbasic_dark_mode');
let redbasic_theme_color = localStorage.getItem('redbasic_theme_color');
-if (redbasic_dark_mode === 1) {
+if (redbasic_dark_mode == 1) {
$('html').attr('data-bs-theme', 'dark');
}
-if (redbasic_dark_mode === 0) {
+if (redbasic_dark_mode == 0) {
$('html').attr('data-bs-theme', 'light');
}
@@ -19,11 +19,11 @@ if (redbasic_theme_color) {
$(document).ready(function() {
- if (redbasic_dark_mode === 1) {
+ if (redbasic_dark_mode == 1) {
$('#theme-switch-icon').removeClass('fa-moon-o').addClass('fa-sun-o');
$('[data-bs-theme="light"]').attr('data-bs-theme', 'dark');
}
- if (redbasic_dark_mode === 0) {
+ if (redbasic_dark_mode == 0) {
$('#theme-switch-icon').removeClass('fa-sun-o').addClass('fa-moon-o');
$('[data-bs-theme="dark"]:not(nav)').attr('data-bs-theme', 'light');
}