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…
bluecco authored Nov 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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

0 comments on commit a463078

Please sign in to comment.