Skip to content

Commit

Permalink
Merge pull request #238 from bluecco/fix/window-ref
Browse files Browse the repository at this point in the history
fix: use windowObject instead of window to prevent ssr breaking
  • Loading branch information
naorye2 authored May 26, 2024
2 parents b9b83bd + 5612403 commit 15275f3
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 15275f3

Please sign in to comment.