Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Update appbar.ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
Halyul authored May 21, 2020
1 parent 7fe3c01 commit a1690dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/_partials/js/appbar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
function detechTheme() {
var modeFlag = localStorage.getItem('darkMode');
// true for dark mode, false for bright mode
if(modeFlag){
if(modeFlag === "true"){
document.querySelector('body').classList.add('mdui-theme-layout-dark')
return true
} else if(!window.matchMedia) {
Expand Down

0 comments on commit a1690dd

Please sign in to comment.