From 052b833b6d1a14b3c528856b479bef68667c2dff Mon Sep 17 00:00:00 2001 From: migbash <20924663+migbash@users.noreply.github.com> Date: Tue, 21 Feb 2023 03:34:48 +0000 Subject: [PATCH] fix: #1020 (mobile-detect); --- src/lib/components/_main_/auth/Auth_Widget.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/_main_/auth/Auth_Widget.svelte b/src/lib/components/_main_/auth/Auth_Widget.svelte index e0fd28aa8..83a037d44 100644 --- a/src/lib/components/_main_/auth/Auth_Widget.svelte +++ b/src/lib/components/_main_/auth/Auth_Widget.svelte @@ -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