Skip to content

Commit 132a9d3

Browse files
authored
Add Deno-specific browser check (#1632)
1 parent cff57f0 commit 132a9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReactPlayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Player from './Player'
99

1010
const Preview = lazy(() => import(/* webpackChunkName: 'reactPlayerPreview' */'./Preview'))
1111

12-
const IS_BROWSER = typeof window !== 'undefined' && window.document
12+
const IS_BROWSER = typeof window !== 'undefined' && window.document && typeof document !== 'undefined'
1313
const IS_GLOBAL = typeof global !== 'undefined' && global.window && global.window.document
1414
const SUPPORTED_PROPS = Object.keys(propTypes)
1515

0 commit comments

Comments
 (0)