From 6ae783b519c8540b95785ca0bca84e280bff3488 Mon Sep 17 00:00:00 2001 From: wql219 <160428035+wql219@users.noreply.github.com> Date: Sun, 29 Sep 2024 03:13:30 +0800 Subject: [PATCH] Update Theme-ColorPalette.js Fixed a bug where user configuration data could not be obtained --- themes/Theme-ColorPalette/Theme-ColorPalette.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/Theme-ColorPalette/Theme-ColorPalette.js b/themes/Theme-ColorPalette/Theme-ColorPalette.js index d4bd93bf..08cfcf80 100644 --- a/themes/Theme-ColorPalette/Theme-ColorPalette.js +++ b/themes/Theme-ColorPalette/Theme-ColorPalette.js @@ -9,7 +9,7 @@ document.documentElement.style.setProperty( async function mainFunction() { let hueValue; try { - const config = await csLib.getConfiguration("colorPalette", {}); + const config = await csLib.getConfiguration("Theme-ColorPalette", {}); hueValue = config.hue; let UserColorValue = hueValue; localStorage.setItem("UserColor", UserColorValue);