Skip to content

Commit

Permalink
fix: #1020 (mobile);
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Feb 20, 2023
1 parent 4ead326 commit 2f0205c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/components/_main_/auth/Auth_Widget.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ COMPONENT JS (w/ TS)
// NOTE: detect mobile device
// if (typeof screen.orientation !== 'undefined') {
if (navigator?.userAgentData?.mobile) {
// if (navigator?.userAgentData?.mobile) {
if (/Mobi/i.test(window.navigator.userAgent)) {
// [ℹ] navigate to MetaMask in-app browser
// await goto('https://metamask.app.link/dapp/scores.betarena.com/?dappLogin=true') // ✅ works
// await goto('https://metamask.app.link/dapp/http://192.168.0.28:3050/') // does not work
Expand Down

0 comments on commit 2f0205c

Please sign in to comment.