WalletConnect: always show the wallet picker (no auto-deeplink to last wallet)
Clear WALLETCONNECT_DEEPLINK_CHOICE before each connect so users aren't trapped auto-launching a wallet that can't finish (e.g. Trust on Amoy); the All Wallets picker shows every time so they can choose MetaMask. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -88,6 +88,10 @@ window.IAPWallet = (function () {
|
|||||||
redirect: { native: '', universal: location.origin + '/my' } }
|
redirect: { native: '', universal: location.origin + '/my' } }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// WalletConnect remembers the last wallet and auto-deep-links to it, which
|
||||||
|
// traps users on a wallet that won't finish (e.g. Trust on a testnet). Clear
|
||||||
|
// that choice so the picker ("All Wallets") shows every time.
|
||||||
|
try { localStorage.removeItem('WALLETCONNECT_DEEPLINK_CHOICE'); } catch (e) {}
|
||||||
if (!wcProvider.session) await wcProvider.connect(); // QR on desktop, opens the wallet app on mobile
|
if (!wcProvider.session) await wcProvider.connect(); // QR on desktop, opens the wallet app on mobile
|
||||||
return wcProvider;
|
return wcProvider;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -439,7 +439,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<script src="/assets/common.js?v=20260908c"></script>
|
<script src="/assets/common.js?v=20260908c"></script>
|
||||||
<script src="/assets/wallet.js?v=20260908h"></script>
|
<script src="/assets/wallet.js?v=20260908i"></script>
|
||||||
<script src="/assets/home.js?v=20260906m"></script>
|
<script src="/assets/home.js?v=20260906m"></script>
|
||||||
<script src="/assets/chat.js?v=20260906m"></script>
|
<script src="/assets/chat.js?v=20260906m"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+1
-1
@@ -696,7 +696,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="/assets/common.js?v=20260908c"></script>
|
<script src="/assets/common.js?v=20260908c"></script>
|
||||||
<script src="/assets/wallet.js?v=20260908h"></script>
|
<script src="/assets/wallet.js?v=20260908i"></script>
|
||||||
<script src="/assets/my.js?v=20260908k"></script>
|
<script src="/assets/my.js?v=20260908k"></script>
|
||||||
<script src="/assets/chat.js?v=20260907l"></script>
|
<script src="/assets/chat.js?v=20260907l"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user