Skip to content

Commit

Permalink
safari only
Browse files Browse the repository at this point in the history
  • Loading branch information
lochie committed Jun 14, 2024
1 parent 3019de1 commit d5b11a8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import Alert from '../Alert';

import { WalletProps, useWallets } from '../../../wallets/useWallets';
import {
detectBrowser,
isCoinbaseWalletConnector,
isWalletConnectConnector,
} from '../../../utils';
Expand Down Expand Up @@ -100,8 +101,9 @@ const ConnectorItem = ({
: undefined;

const redirectToMoreWallets = isMobile && isWalletConnectConnector(wallet.id);
// Safari requires opening popup on user gesture, so we connect immediately here
const shouldConnectImmediately =
//isMobile &&
detectBrowser() === 'safari' &&
isCoinbaseWalletConnector(wallet.connector.id);

if (redirectToMoreWallets || shouldConnectImmediately) deeplink = undefined; // mobile redirects to more wallets page
Expand Down

0 comments on commit d5b11a8

Please sign in to comment.