mirror of
https://github.com/jakejarvis/dark-mode-example.git
synced 2026-09-11 23:25:34 -04:00
Update dark-mode.js
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
var activateTheme = function(theme) {
|
var activateTheme = function(theme) {
|
||||||
cls.remove(cls_light, cls_dark);
|
cls.remove(cls_light, cls_dark);
|
||||||
cls.add(theme);
|
cls.add(theme);
|
||||||
dark = (theme == cls_dark ? true : false);
|
dark = (theme === cls_dark);
|
||||||
};
|
};
|
||||||
|
|
||||||
// if user already explicitly toggled in the past, restore their preference.
|
// if user already explicitly toggled in the past, restore their preference.
|
||||||
|
|||||||
Reference in New Issue
Block a user