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.');