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