Skip to content

Commit

Permalink
Make Rainbow in-Wallet browser work again
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Dec 10, 2024
1 parent df82748 commit 4ac0b31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/web/src/client.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ const isDesktop = () => {
// So instead, we're now asking mobile users to connect via the WalletConnect
// dialogue, while we allow Desktop users to connect to their Rainbow wallet
// extension directly.
if (isDesktop()) wallets.push(rainbowWallet({ chains, projectId }));
if (isDesktop()) {
wallets.push(rainbowWallet({ chains, projectId }));
} else if (window.ethereum.isRainbow) {
wallets.push(rainbowWallet({ chains, projectId }));
}

const connectors = connectorsForWallets([
{
Expand Down

0 comments on commit 4ac0b31

Please sign in to comment.