Skip to content

Commit

Permalink
lint fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
horstleung committed Oct 29, 2023
1 parent 130abb4 commit b0dffad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/is-browser.ts
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b0dffad

Please sign in to comment.