From 43ee91c8e4e857e125778942ca009a28bad0eddb Mon Sep 17 00:00:00 2001 From: Jeff Date: Sun, 13 Oct 2024 00:21:41 -0400 Subject: [PATCH] Remove window. in b64ToUInt8 --- b64ToUInt8.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b64ToUInt8.ts b/b64ToUInt8.ts index 100edc9..2da6712 100644 --- a/b64ToUInt8.ts +++ b/b64ToUInt8.ts @@ -2,7 +2,7 @@ export default function urlB64ToUint8Array(base64String: string) { const padding = "=".repeat((4 - (base64String.length % 4)) % 4) const base64 = (base64String + padding).replace(/\-/g, "+").replace(/_/g, "/") - const rawData = window.atob(base64) + const rawData = atob(base64) const outputArray = new Uint8Array(rawData.length) for (let i = 0; i < rawData.length; ++i) {