Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
9f067479
Unverified
Commit
9f067479
authored
Nov 14, 2023
by
Thomas Thachil
Committed by
GitHub
Nov 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(): deeplink for android wc (#7573)
parent
c6b44bb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
WalletConnectV2.ts
src/connection/WalletConnectV2.ts
+2
-2
No files found.
src/connection/WalletConnectV2.ts
View file @
9f067479
...
...
@@ -3,7 +3,7 @@ import { URI_AVAILABLE, WalletConnect, WalletConnectConstructorArgs } from '@web
import
{
sendAnalyticsEvent
}
from
'
analytics
'
import
{
L1_CHAIN_IDS
,
L2_CHAIN_IDS
}
from
'
constants/chains
'
import
{
Z_INDEX
}
from
'
theme/zIndex
'
import
{
isIOS
}
from
'
utils/userAgent
'
import
{
is
Android
,
is
IOS
}
from
'
utils/userAgent
'
import
{
RPC_URLS
}
from
'
../constants/networks
'
...
...
@@ -83,7 +83,7 @@ export class UniwalletConnect extends WalletConnectV2 {
this
.
events
.
emit
(
UniwalletConnect
.
UNI_URI_AVAILABLE
,
`https://uniswap.org/app/wc?uri=
${
uri
}
`
)
// Opens deeplink to Uniswap Wallet if on iOS
if
(
isIOS
)
{
if
(
isIOS
||
isAndroid
)
{
// Using window.location.href to open the deep link ensures smooth navigation and leverages OS handling for installed apps,
// avoiding potential popup blockers or inconsistent behavior associated with window.open
window
.
location
.
href
=
`uniswap://wc?uri=
${
encodeURIComponent
(
uri
)}
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment