From 5612403a74482aee3c24dab8f7d94574839f0586 Mon Sep 17 00:00:00 2001 From: bluecco Date: Mon, 6 May 2024 15:11:25 +0200 Subject: [PATCH] fix: use windowObject instead of window to prevent ssr breaking --- packages/core/src/wallet/metamaskBridge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/wallet/metamaskBridge.ts b/packages/core/src/wallet/metamaskBridge.ts index 6462f58..1cb9944 100644 --- a/packages/core/src/wallet/metamaskBridge.ts +++ b/packages/core/src/wallet/metamaskBridge.ts @@ -174,7 +174,7 @@ function createMetaMaskProviderWrapper( } async function injectMetamaskBridge(windowObject: Record) { - if (window.hasOwnProperty("starknet_metamask")) { + if (windowObject.hasOwnProperty("starknet_metamask")) { return }