commit
bc9c24403f
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
|||
|
||||
// dark theme
|
||||
const metaTheme = document.querySelector('meta[name="theme-color"]');
|
||||
const lightBg = `{{ $.Scratch.Get "bg_color" }}`.replace(/"/g, '');
|
||||
const lightBg = "{{ $.Scratch.Get `bg_color` }}".replace(/"/g, '');
|
||||
const setDark = (isDark) => {
|
||||
metaTheme.setAttribute('content', isDark ? '#000' : lightBg);
|
||||
htmlClass[isDark ? 'add' : 'remove']('dark');
|
||||
|
|
Loading…
Reference in a new issue