File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 10721072 * boolean flag `isiOSStandalone`, `isiOSUiwebview` and `isAndroidWebview` will be set as side effect.
10731073 */
10741074 UserAgent . prototype . testWebview = function ( ) {
1075- if ( this . Agent . os === 'iOS' && isBrowser ) {
1076- if ( window . navigator . standalone && ! this . Agent . isSafari ) {
1075+ var isiOS = [ 'iOS' , 'OS X' ] . indexOf ( this . Agent . os ) !== - 1 || ( this . Agent . isiPad || this . Agent . isiPod || this . Agent . isiPhone ) ;
1076+ var isStandaloneBrowser =
1077+ this . Agent . isYaBrowser ||
1078+ this . Agent . isOpera ||
1079+ this . Agent . isIE ||
1080+ this . Agent . isEdge ||
1081+ this . Agent . isSafari ||
1082+ this . Agent . isFirefox ||
1083+ this . Agent . isChrome ||
1084+ this . Agent . isUC ;
1085+
1086+ if ( isiOS && isBrowser ) {
1087+ if ( window . navigator . standalone && ! isStandaloneBrowser ) {
10771088 this . Agent . isiOSStandalone = true ;
1078- } else if ( ! window . navigator . standalone && ! this . Agent . isSafari ) {
1089+ } else if ( ! window . navigator . standalone && ! isStandaloneBrowser ) {
10791090 this . Agent . isiOSUiwebview = true ;
10801091 }
10811092 } else if ( this . Agent . isAndroid ) {
You can’t perform that action at this time.
0 commit comments