From d69c02608fa5028eacc7689c960dc1cd524073f9 Mon Sep 17 00:00:00 2001 From: tate Date: Tue, 13 Feb 2024 11:46:06 +1100 Subject: [PATCH] fix typeof in registerHelpers --- packages/ensjs/src/utils/registerHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ensjs/src/utils/registerHelpers.ts b/packages/ensjs/src/utils/registerHelpers.ts index 5becf4a1..31a764ed 100644 --- a/packages/ensjs/src/utils/registerHelpers.ts +++ b/packages/ensjs/src/utils/registerHelpers.ts @@ -61,7 +61,7 @@ export type RegistrationTuple = [ const cryptoRef = (typeof crypto !== 'undefined' && crypto) || (typeof window !== 'undefined' && - typeof window.crypto !== undefined && + typeof window.crypto !== 'undefined' && window.crypto) || undefined