Update header.html
fix build error
This commit is contained in:
parent
e7e91a6882
commit
a6fea9b4a0
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