Skip to content

Commit

Permalink
fix: use windowObject instead of window to prevent ssr breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed May 6, 2024
1 parent b9b83bd commit 5612403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/wallet/metamaskBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function createMetaMaskProviderWrapper(
}

async function injectMetamaskBridge(windowObject: Record<string, unknown>) {
if (window.hasOwnProperty("starknet_metamask")) {
if (windowObject.hasOwnProperty("starknet_metamask")) {
return
}

Expand Down

0 comments on commit 5612403

Please sign in to comment.