@@ -32,7 +32,7 @@ var getNavigatorInstance = function getNavigatorInstance() {
3232} ;
3333var isIOS13Check = function isIOS13Check ( type ) {
3434 var nav = getNavigatorInstance ( ) ;
35- return nav && ( nav . platform . includes ( type ) || nav . platform === 'MacIntel' && nav . maxTouchPoints > 1 && ! window . MSStream ) ;
35+ return nav && ( nav . platform . indexOf ( type ) !== - 1 || nav . platform === 'MacIntel' && nav . maxTouchPoints > 1 && ! window . MSStream ) ;
3636} ;
3737
3838function _typeof ( obj ) {
@@ -428,7 +428,7 @@ var isIEType = function isIEType() {
428428var isElectronType = function isElectronType ( ) {
429429 var nav = getNavigatorInstance ( ) ;
430430 var ua = nav && nav . userAgent . toLowerCase ( ) ;
431- return typeof ua === 'string' ? ua . includes ( 'electron' ) : false ;
431+ return typeof ua === 'string' ? / e l e c t r o n / . test ( ua ) : false ;
432432} ;
433433
434434var getIOS13 = function getIOS13 ( ) {
@@ -497,9 +497,9 @@ var isConsole = isConsoleType();
497497var isWearable = isWearableType ( ) ;
498498var isMobileSafari = isMobileSafariType ( ) ;
499499var isChromium = isChromiumType ( ) ;
500- var isMobile = isMobileAndTabletType ( ) ;
500+ var isMobile = isMobileAndTabletType ( ) || getIPad13 ( ) ;
501501var isMobileOnly = isMobileType ( ) ;
502- var isTablet = isTabletType ( ) ;
502+ var isTablet = isTabletType ( ) || getIPad13 ( ) ;
503503var isBrowser = isBrowserType ( ) ;
504504var isAndroid = isAndroidType ( ) ;
505505var isWinPhone = isWinPhoneType ( ) ;
0 commit comments