Skip to content

Commit

Permalink
fix: update logic to show argent mobile when safari popup block is ac…
Browse files Browse the repository at this point in the history
…tive
  • Loading branch information
bluecco committed Nov 21, 2023
1 parent 90245ac commit 4812868
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/connectors/argentMobile/modal/argentModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4812868

Please sign in to comment.