File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- import { WCWallet } from '../src/wc-wallet' ;
1+ import { WCWallet } from '../src/wallets/ wc-wallet' ;
22import { UniversalProvider } from '@walletconnect/universal-provider' ;
33import { WalletAccount , SignType } from '../src/types' ;
44import { Chain } from '@chain-registry/v2-types' ;
Original file line number Diff line number Diff line change 11export const isMobile = ( ) => {
2- const userAgent = navigator . userAgent || navigator . vendor || window . opera ;
2+ const userAgent = navigator . userAgent || navigator . vendor
33 return (
44 / a n d r o i d / i. test ( userAgent ) ||
5- / i P a d | i P h o n e | i P o d / . test ( userAgent ) && ! window . MSStream
5+ / i P a d | i P h o n e | i P o d / . test ( userAgent )
66 ) ;
77}
88
99export const isAndroid = ( ) => {
10- const userAgent = navigator . userAgent || navigator . vendor || window . opera ;
10+ const userAgent = navigator . userAgent || navigator . vendor
1111 return / a n d r o i d / i. test ( userAgent ) ;
1212}
1313
1414export const isIOS = ( ) => {
15- const userAgent = navigator . userAgent || navigator . vendor || window . opera ;
16- return / i P a d | i P h o n e | i P o d / . test ( userAgent ) && ! window . MSStream ;
15+ const userAgent = navigator . userAgent || navigator . vendor
16+ return / i P a d | i P h o n e | i P o d / . test ( userAgent ) ;
1717}
You can’t perform that action at this time.
0 commit comments