From 075304d691288a336201d8690670ed801599eeab Mon Sep 17 00:00:00 2001 From: Raggok Date: Wed, 26 Aug 2020 12:55:44 -0500 Subject: [PATCH] fix to work with nextjs --- src/isAndroid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 : "")