Skip to content

Commit

Permalink
fix: #1020 (mobile-detect);
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Feb 21, 2023
1 parent 0b1b318 commit 052b833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/_main_/auth/Auth_Widget.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ COMPONENT JS (w/ TS)
// NOTE: detect mobile device
// if (typeof screen.orientation !== 'undefined') {
// if (navigator?.userAgentData?.mobile) {
if (/Mobi/i.test(window.navigator.userAgent)) {
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 052b833

Please sign in to comment.