diff --git a/src/isAndroid.js b/src/isAndroid.js index 6b84000..90d4579 100644 --- a/src/isAndroid.js +++ b/src/isAndroid.js @@ -1 +1 @@ -export default () => /(android)/i.test(navigator.userAgent) +export default () => /(android)/i.test(typeof navigator !== 'undefined' ? navigator.userAgent : "")