Skip to content

Commit

Permalink
Merge pull request #251 from EvanNotFound/dev
Browse files Browse the repository at this point in the history
lightdark: fix bug
  • Loading branch information
EvanNotFound authored Oct 1, 2023
2 parents f8b9a23 + 48d6bb2 commit 41229cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/js/tools/lightDarkSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,12 @@ export const ModeToggle = {
typeof theme.mermaid.style.dark !== "undefined"
? theme.mermaid.style.dark
: "dark";
await saveOriginalData().catch(console.error);
this.initModeStatus();
this.initModeToggleButton();
this.initModeAutoTrigger();
try {
await saveOriginalData().catch(console.error);
} catch (error) {}
},
};

Expand Down

0 comments on commit 41229cf

Please sign in to comment.