1
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:
2020-04-29 19:07:57 -04:00
committed by GitHub
parent 5bfde00e7b
commit 466f7535d9

View File

@@ -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.