Skip to content

Commit

Permalink
Merge pull request #32 from argentlabs/fix/argent-mobile-open
Browse files Browse the repository at this point in the history
fix: update logic to show argent mobile when safari popup block is ac…
  • Loading branch information
bluecco authored Nov 21, 2023
2 parents 8995456 + 4812868 commit a463078
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 a463078

Please sign in to comment.