Skip to content

Commit

Permalink
chore: add device to argent modal urls
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Oct 19, 2023
1 parent 99b2b1f commit 9a4101a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/connectors/argentMobile/modal/argentModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ class ArgentModal {
public showConnectionModal(wcUri: string) {
const wcParam = encodeURIComponent(wcUri)
const href = encodeURIComponent(window.location.href)

this.showModal({
desktop: `${this.bridgeUrl}?wc=${wcParam}`,
ios: `${this.mobileUrl}app/wc?uri=${wcParam}&href=${href}`,
android: `${this.mobileUrl}app/wc?uri=${wcParam}&href=${href}`,
desktop: `${this.bridgeUrl}?wc=${wcParam}&device=desktop`,
ios: `${this.mobileUrl}app/wc?uri=${wcParam}&href=${href}&device=mobile`,
android: `${this.mobileUrl}app/wc?uri=${wcParam}&href=${href}&device=mobile`,
})
}

Expand All @@ -95,9 +96,9 @@ class ArgentModal {
this should be ignored and not considered valid as it's only used for automatically redirecting the users to approve or reject a signing request.
*/
this.showModal({
desktop: `${this.bridgeUrl}?action=sign`,
ios: `${this.mobileUrl}app/wc?uri=${href}`,
android: `${this.mobileUrl}app/wc?uri=${href}`,
desktop: `${this.bridgeUrl}?action=sign&device=desktop`,
ios: `${this.mobileUrl}app/wc?uri=${href}&device=mobile`,
android: `${this.mobileUrl}app/wc?uri=${href}&device=mobile`,
})
}

Expand Down

0 comments on commit 9a4101a

Please sign in to comment.