mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 09:22:24 +00:00
Fix syntax errors blocking app bootstrap
This commit is contained in:
1 parent
78ce75ef62
commit
0a2a2c4e78
18 files changed
+80
-64
No files matched your search
@@ -8,8 +8,8 @@ import {
|
||||
isDevMode,
|
||||
} from "./config.js";
|
||||
import { nostrClient } from "./nostr.js";
|
||||
import {
|
||||
import { devLogger, userLogger } from "./utils/logger.js";
|
||||
import {
|
||||
buildAdminListEvent,
|
||||
ADMIN_LIST_IDENTIFIERS,
|
||||
} from "./nostrEventSchemas.js";
|
||||
@@ -151,8 +151,10 @@ function readJsonListFromStorage(key) {
|
||||
const parsed = JSON.parse(raw);
|
||||
return Array.isArray(parsed) ? parsed : null;
|
||||
} catch (error) {
|
||||
devLogger.warn(`[adminListStore] Failed to parse legacy list for ${key:`, error);
|
||||
}
|
||||
devLogger.warn(
|
||||
`[adminListStore] Failed to parse legacy list for ${key}:`,
|
||||
error,
|
||||
);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -198,8 +200,10 @@ function clearLegacyStorageFor(listKey) {
|
||||
try {
|
||||
localStorage.removeItem(key);
|
||||
} catch (error) {
|
||||
devLogger.warn(`[adminListStore] Failed to clear legacy storage for ${key:`, error);
|
||||
}
|
||||
devLogger.warn(
|
||||
`[adminListStore] Failed to clear legacy storage for ${key}:`,
|
||||
error,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user