From b0dffad0b4ef6ff8297438d0b9a4f504216f59cc Mon Sep 17 00:00:00 2001 From: Horst Leung Date: Sun, 29 Oct 2023 21:10:00 +0800 Subject: [PATCH] lint fixed --- src/lib/is-browser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/is-browser.ts b/src/lib/is-browser.ts index b24cc297e..fe69ce650 100644 --- a/src/lib/is-browser.ts +++ b/src/lib/is-browser.ts @@ -1,6 +1,6 @@ const isBrowser = (typeof window !== 'undefined' && typeof window.document !== 'undefined') || // eslint-disable-next-line no-restricted-globals - (typeof self !== 'undefined' && typeof self.postMessage === 'function') || // is web worker - (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') // while navigator.product is deprecated + (typeof self !== 'undefined' && typeof self.postMessage === 'function') || // is web worker + (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') // while navigator.product is deprecated export default isBrowser