fix: use globalThis
This commit is contained in:
parent
bff17fb1e9
commit
23c2848683
|
@ -20,7 +20,7 @@ Object.freeze(DEFAULT_MODULE_REGISTRY);
|
||||||
|
|
||||||
export function getSavedRegistryEntry(pubkey: string) {
|
export function getSavedRegistryEntry(pubkey: string) {
|
||||||
const savedEntries = new Map<string, 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)) {
|
if (savedEntries.has(pubkey)) {
|
||||||
|
|
Loading…
Reference in New Issue