diff --git a/main.js b/main.js index f7e1689..1ee1fd7 100644 --- a/main.js +++ b/main.js @@ -495,7 +495,7 @@ var getDeviceType = function getDeviceType() { var isSmartTV = isSmartTVType(); var isConsole = isConsoleType(); var isWearable = isWearableType(); -var isMobileSafari = isMobileSafariType(); +var isMobileSafari = isMobileSafariType() || getIPad13(); var isChromium = isChromiumType(); var isMobile = isMobileAndTabletType() || getIPad13(); var isMobileOnly = isMobileType(); @@ -503,7 +503,7 @@ var isTablet = isTabletType() || getIPad13(); var isBrowser = isBrowserType(); var isAndroid = isAndroidType(); var isWinPhone = isWinPhoneType(); -var isIOS = isIOSType(); +var isIOS = isIOSType() || getIPad13(); var isChrome = isChromeType(); var isFirefox = isFirefoxType(); var isSafari = isSafariType(); diff --git a/package.json b/package.json index 2db35f6..98dc1c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-device-detect", - "version": "1.12.0", + "version": "1.12.1", "description": "Detect device type and render your component according to it", "main": "main.js", "typings": "./index.d.ts",