Skip to content

Commit

Permalink
Add Deno-specific browser check (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemolland authored Feb 21, 2024
1 parent cff57f0 commit 132a9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReactPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Player from './Player'

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

const IS_BROWSER = typeof window !== 'undefined' && window.document
const IS_BROWSER = typeof window !== 'undefined' && window.document && typeof document !== 'undefined'
const IS_GLOBAL = typeof global !== 'undefined' && global.window && global.window.document
const SUPPORTED_PROPS = Object.keys(propTypes)

Expand Down

0 comments on commit 132a9d3

Please sign in to comment.