We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cff57f0 commit 132a9d3Copy full SHA for 132a9d3
src/ReactPlayer.js
@@ -9,7 +9,7 @@ import Player from './Player'
9
10
const Preview = lazy(() => import(/* webpackChunkName: 'reactPlayerPreview' */'./Preview'))
11
12
-const IS_BROWSER = typeof window !== 'undefined' && window.document
+const IS_BROWSER = typeof window !== 'undefined' && window.document && typeof document !== 'undefined'
13
const IS_GLOBAL = typeof global !== 'undefined' && global.window && global.window.document
14
const SUPPORTED_PROPS = Object.keys(propTypes)
15
0 commit comments