Jacky Zhao
2022-07-19 d747b19e6104def4b550d86b2ce6ce923773d8ad
assets/js/darkmode.js
@@ -8,7 +8,7 @@
if (currentTheme) {
  document.documentElement.setAttribute('saved-theme', currentTheme);
  (currentTheme === 'dark') ? syntaxTheme.href = '{{ $darkSyntax.Permalink }}' : syntaxTheme.href = '{{ $lightSyntax.Permalink }}';
  syntaxTheme.href = currentTheme === 'dark' ?  '{{ $darkSyntax.Permalink }}' :  '{{ $lightSyntax.Permalink }}';
}
const switchTheme = (e) => {