Skip to content

Commit

Permalink
Fix requesting ethereum from window
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Dec 10, 2024
1 parent 4ac0b31 commit af05dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/src/client.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const isDesktop = () => {
// extension directly.
if (isDesktop()) {
wallets.push(rainbowWallet({ chains, projectId }));
} else if (window.ethereum.isRainbow) {
} else if (window?.ethereum?.isRainbow) {
wallets.push(rainbowWallet({ chains, projectId }));
}

Expand Down

0 comments on commit af05dc8

Please sign in to comment.