Wallet help: SafePal + any-wallet in-app-browser path (not just MetaMask/Trust)

Mobile users on SafePal/Coinbase/Rabby had no route in — the deep-link help
only offered MetaMask + Trust. Added a wallet-agnostic instruction (open your
wallet app -> Browser/DApp tab -> type the join URL) that works via the
injected provider our EIP-6963 picker already resolves; join-now fills the
sponsor path into the hint. Dashboard no-wallet message made wallet-agnostic
and names SafePal. No guessed SafePal deep-link scheme (unverified).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-08-25 18:18:46 -05:00
parent aba3db2938
commit 0ee7063a76
3 changed files with 10 additions and 3 deletions
+3
View File
@@ -181,6 +181,9 @@ fetch('/api/public/config').then(function(r){return r.json()}).then(function(c){
var here=location.host+location.pathname+location.search;
var mm=$('mmDeep'); if(mm) mm.href='https://metamask.app.link/dapp/'+here;
var tw=$('twDeep'); if(tw) tw.href='https://link.trustwallet.com/open_url?coin_id=966&url='+encodeURIComponent(location.href);
// Fill the "type this in your wallet's browser" hint with the sponsor's
// real join path so SafePal/Coinbase/etc. users land on the right page.
var wb=$('wbId'); if(wb){ var ref=new URLSearchParams(location.search).get('ref'); wb.parentNode.textContent='rmcircle.team'+(ref&&/^\d{1,15}$/.test(ref)?'/join/'+ref:'/join-now'); }
box.style.display='block';
}