From 4ac0b31768600040e8add9aabc04d2bb016d1c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Tue, 10 Dec 2024 14:44:14 +0100 Subject: [PATCH] Make Rainbow in-Wallet browser work again --- src/web/src/client.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/web/src/client.mjs b/src/web/src/client.mjs index 64450b56..36cd8f48 100644 --- a/src/web/src/client.mjs +++ b/src/web/src/client.mjs @@ -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([ {