Add WalletConnect: connect from any mobile browser (no dApp browser)

Mobile users in a normal browser hit "no wallet found" because EIP-6963 only
sees injected/extension wallets. WalletConnect fixes it: the connect picker now
offers WalletConnect (auto-selected when no injected wallet is present), which
shows a QR on desktop and opens the wallet app directly on mobile — no in-app
dApp browser, no second login. Lazy-loads the @walletconnect/ethereum-provider
UMD from jsdelivr; the result is a plain EIP-1193 provider so sign/switch/buy are
unchanged. CSP widened for the SDK + WC relay. Project id lives in site config
(public value); gated so nothing changes until it's set.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-08 07:36:07 -05:00
parent 93912fa621
commit f0e42e47bb
4 changed files with 44 additions and 5 deletions
+1 -1
View File
@@ -690,7 +690,7 @@
</div>
</div>
<script src="/assets/common.js?v=20260908c"></script>
<script src="/assets/wallet.js?v=20260907q"></script>
<script src="/assets/wallet.js?v=20260908a"></script>
<script src="/assets/my.js?v=20260908h"></script>
<script src="/assets/chat.js?v=20260907l"></script>
</body>