UNPKG

380 BJavaScriptView Raw
1/**
2 * Returns true if and only if the user is on a iOS device.
3 * Used to determine whether iOS-specific behavior should be applied.
4 */
5export var isIOS = function () {
6 if (!window || !window.navigator || !window.navigator.userAgent) {
7 return false;
8 }
9 return /iPad|iPhone|iPod/i.test(window.navigator.userAgent);
10};
11//# sourceMappingURL=mobileDetector.js.map
\No newline at end of file