Fix localStorage key for loading screen preference (v1.4.0.0)
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 48s
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 48s
This commit is contained in:
@@ -209,7 +209,7 @@ const initLoadingScreen = () => {
|
|||||||
if (!isHomePage) return;
|
if (!isHomePage) return;
|
||||||
|
|
||||||
// Check LocalStorage for cached preference to avoid flash
|
// Check LocalStorage for cached preference to avoid flash
|
||||||
const cachedSetting = localStorage.getItem('mediaBarEnhanced_enableLoadingScreen');
|
const cachedSetting = localStorage.getItem('mediaBarEnhanced-enableLoadingScreen');
|
||||||
if (cachedSetting === 'false') {
|
if (cachedSetting === 'false') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -443,7 +443,7 @@ const fetchPluginConfig = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sync to LocalStorage for next load
|
// Sync to LocalStorage for next load
|
||||||
localStorage.setItem('mediaBarEnhanced_enableLoadingScreen', CONFIG.enableLoadingScreen);
|
localStorage.setItem('mediaBarEnhanced-enableLoadingScreen', CONFIG.enableLoadingScreen);
|
||||||
|
|
||||||
console.log("✅ MediaBarEnhanced config loaded", CONFIG);
|
console.log("✅ MediaBarEnhanced config loaded", CONFIG);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user