From b6142a654d3040baa18bfae7caa2f4db5aa458c0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 11 Sep 2023 05:42:29 -0400 Subject: [PATCH] fix: use globalThis --- src/key.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key.ts b/src/key.ts index ec759cf..029df26 100644 --- a/src/key.ts +++ b/src/key.ts @@ -1,5 +1,5 @@ import { hexToBytes } from "@lumeweb/libweb"; export const activeKey = hexToBytes( - window.localStorage.getItem("key") as string, + globalThis.localStorage.getItem("key") as string, );