Restore comment bootstrap and guard admin cache hydration

This commit is contained in:
thePR0M3TH3AN committed 2025-11-03 20:19:45 -05:00
1 parent 4a70adcd1c
commit 5d31366c79
5 files changed
+284 -8

No files matched your search

+4 -4
View File
@@ -276,7 +276,7 @@ function loadLegacyAdminState() {
return hasAnyEntries(sanitized) ? sanitized : null;
}
export function readCachedAdminState() {
export const readCachedAdminState = () => {
if (typeof localStorage === "undefined") {
return null;
}
@@ -306,9 +306,9 @@ export function readCachedAdminState() {
);
return null;
}
}
};
export function writeCachedAdminState(state) {
export const writeCachedAdminState = (state) => {
if (typeof localStorage === "undefined") {
return;
}
@@ -322,7 +322,7 @@ export function writeCachedAdminState(state) {
error,
);
}
}
};
function clearLegacyStorageFor(listKey) {
if (typeof localStorage === "undefined") {