fix: use globalThis

This commit is contained in:
Derrick Hammer 2023-09-11 05:47:09 -04:00
parent bff17fb1e9
commit 23c2848683
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ Object.freeze(DEFAULT_MODULE_REGISTRY);
export function getSavedRegistryEntry(pubkey: string) {
const savedEntries = new Map<string, string>(
Object.entries(window.localStorage.getItem(REGISTRY_ITEM_ID) ?? {}),
Object.entries(globalThis.localStorage.getItem(REGISTRY_ITEM_ID) ?? {}),
);
if (savedEntries.has(pubkey)) {