From 48128687b61597038ddc749da31945e85bbc14f8 Mon Sep 17 00:00:00 2001 From: bluecco Date: Tue, 21 Nov 2023 09:39:59 +0100 Subject: [PATCH] fix: update logic to show argent mobile when safari popup block is active --- src/connectors/argentMobile/modal/argentModal.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/connectors/argentMobile/modal/argentModal.ts b/src/connectors/argentMobile/modal/argentModal.ts index 9721d31..54e28e0 100644 --- a/src/connectors/argentMobile/modal/argentModal.ts +++ b/src/connectors/argentMobile/modal/argentModal.ts @@ -121,9 +121,11 @@ class ArgentModal { } if (device === "android" || device === "ios") { - const toMobileApp = document.createElement("a") - toMobileApp.setAttribute("href", urls[device]) - toMobileApp.setAttribute("target", "_blank") + const toMobileApp = document.createElement("button") + toMobileApp.style.display = "none" + toMobileApp.addEventListener("click", () => { + window.location.href = urls[device] + }) toMobileApp.click() return