Skip to content

Commit a0f596f

Browse files
fix test issue
1 parent ff03632 commit a0f596f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/core/__tests__/wc-wallet.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { WCWallet } from '../src/wc-wallet';
1+
import { WCWallet } from '../src/wallets/wc-wallet';
22
import { UniversalProvider } from '@walletconnect/universal-provider';
33
import { WalletAccount, SignType } from '../src/types';
44
import { Chain } from '@chain-registry/v2-types';
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
export const isMobile = () => {
2-
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
2+
const userAgent = navigator.userAgent || navigator.vendor
33
return (
44
/android/i.test(userAgent) ||
5-
/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream
5+
/iPad|iPhone|iPod/.test(userAgent)
66
);
77
}
88

99
export const isAndroid = () => {
10-
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
10+
const userAgent = navigator.userAgent || navigator.vendor
1111
return /android/i.test(userAgent);
1212
}
1313

1414
export const isIOS = () => {
15-
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
16-
return /iPad|iPhone|iPod/.test(userAgent) && !window.MSStream;
15+
const userAgent = navigator.userAgent || navigator.vendor
16+
return /iPad|iPhone|iPod/.test(userAgent);
1717
}

0 commit comments

Comments
 (0)