From 0ee7063a763e13cf0825c2fff2381fd2e8ef971c Mon Sep 17 00:00:00 2001 From: martbost Date: Tue, 25 Aug 2026 18:18:46 -0500 Subject: [PATCH] Wallet help: SafePal + any-wallet in-app-browser path (not just MetaMask/Trust) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- private/join-now.html | 8 ++++++-- public/join-now.js | 3 +++ public/my.js | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/private/join-now.html b/private/join-now.html index e7360e5..4b4a9f3 100644 --- a/private/join-now.html +++ b/private/join-now.html @@ -24,8 +24,12 @@ diff --git a/public/join-now.js b/public/join-now.js index aa15c43..72fd051 100644 --- a/public/join-now.js +++ b/public/join-now.js @@ -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'; } diff --git a/public/my.js b/public/my.js index 837ad46..1f5a5f9 100644 --- a/public/my.js +++ b/public/my.js @@ -317,7 +317,7 @@ const err=document.getElementById('msgAuthErr'); try{ const eth=await window.RMCWallet.pick(); - if(!eth){err.textContent='No wallet found in this browser. On a phone, open this page inside your wallet app\'s browser (MetaMask or Trust).';return;} + if(!eth){err.textContent='No wallet found in this browser. On a phone, open your wallet app (SafePal, MetaMask, Trust, Coinbase…), go to its Browser or DApp tab, and type this page\'s address there β€” your wallet connects automatically.';return;} const accs=await eth.request({method:'eth_requestAccounts'});const account=accs[0]; const ch=await(await fetch('/api/public/msg-challenge',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({address:account})})).json(); if(!ch.message)throw new Error(ch.error||'Could not start sign-in.');