Skip to content

Commit 32ae14c

Browse files
authored
Merge pull request #85 from askielboe/fix-isios-ipad-safari
fix isIOS and isMobileSafari on iPads running Safari and iOS 13
2 parents f81ecc5 + 3e20bd5 commit 32ae14c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/helpers/selectors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ const getDeviceType = () => setDefaults(device.type, 'browser');
6565
export const isSmartTV = isSmartTVType();
6666
export const isConsole = isConsoleType();
6767
export const isWearable = isWearableType();
68-
export const isMobileSafari = isMobileSafariType();
68+
export const isMobileSafari = isMobileSafariType() || getIPad13();
6969
export const isChromium = isChromiumType();
7070
export const isMobile = isMobileAndTabletType() || getIPad13();
7171
export const isMobileOnly = isMobileType();
7272
export const isTablet = isTabletType() || getIPad13();
7373
export const isBrowser = isBrowserType();
7474
export const isAndroid = isAndroidType();
7575
export const isWinPhone = isWinPhoneType();
76-
export const isIOS = isIOSType();
76+
export const isIOS = isIOSType() || getIPad13();
7777
export const isChrome = isChromeType();
7878
export const isFirefox = isFirefoxType();
7979
export const isSafari = isSafariType();

0 commit comments

Comments
 (0)