Update dark-mode.js

This commit is contained in:
2020-04-29 19:07:57 -04:00
committed by GitHub
parent 5bfde00e7b
commit 466f7535d9
+1 -1
View File
@@ -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.