mirror of
https://github.com/Ad-closeNN/blog-fuwari.git
synced 2026-05-31 01:40:03 -04:00
fix(config): 修复主题色均会变为290色的问题
This commit is contained in:
@@ -130,7 +130,7 @@ const bannerOffset =
|
|||||||
|
|
||||||
// Load the hue from local storage
|
// Load the hue from local storage
|
||||||
const currentDay = new Date().getDay();
|
const currentDay = new Date().getDay();
|
||||||
const hue = currentDay === 3 ? 290 : (localStorage.getItem('hue') || configHue);
|
const hue = currentDay === 0 ? 290 : (localStorage.getItem('hue') || configHue);
|
||||||
//const hue = localStorage.getItem('hue') || configHue;
|
//const hue = localStorage.getItem('hue') || configHue;
|
||||||
document.documentElement.style.setProperty('--hue', hue);
|
document.documentElement.style.setProperty('--hue', hue);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user