Small fix for startup task

This commit is contained in:
HighImKevin
2025-11-15 07:36:52 -05:00
parent 1cd0cb2b3a
commit fb5c667ab5
+6
View File
@@ -770,6 +770,7 @@ window.KefinTweaksConfig = ${JSON.stringify(defaultConfig, null, 2)};`;
// Save the configuration
await savePluginConfig(pluginId, injectorConfig);
window.KefinTweaksConfig = defaultConfig;
console.log('[KefinTweaks Startup] KefinTweaks-Config added to JS Injector');
return true;
} catch (error) {
@@ -781,6 +782,11 @@ window.KefinTweaksConfig = ${JSON.stringify(defaultConfig, null, 2)};`;
// Ensure Watchlist tab exists in CustomTabs
async function ensureWatchlistTab() {
try {
if (!window.KefinTweaksConfig) {
console.log('[KefinTweaks Startup] KefinTweaksConfig not found, skipping Watchlist tab check');
return true;
}
// Check if Watchlist is enabled in the configuration
if (!window.KefinTweaksConfig.scripts.watchlist) {
console.log('[KefinTweaks Startup] Watchlist is disabled in configuration, skipping Watchlist tab check');