1 | export function isCordova(plt) {
|
2 | var win = plt.win();
|
3 | return !!(win['cordova'] || win['PhoneGap'] || win['phonegap']);
|
4 | }
|
5 | export function isElectron(plt) {
|
6 | return plt.testUserAgent('Electron');
|
7 | }
|
8 | export function isIos(plt) {
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | return plt.testNavigatorPlatform('iphone|ipad|ipod');
|
14 | }
|
15 | export function isSafari(plt) {
|
16 | return plt.testUserAgent('Safari');
|
17 | }
|
18 | export function isWKWebView(plt) {
|
19 | return isIos(plt) && !!plt.win()['webkit'];
|
20 | }
|
21 | export function isIosUIWebView(plt) {
|
22 | return isIos(plt) && !isWKWebView(plt) && !isSafari(plt);
|
23 | }
|
24 |
|
\ | No newline at end of file |