Skip to content

Commit

Permalink
little relax IS_BROWSER detection
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jul 29, 2022
1 parent 602e567 commit dc43aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/internals/engine-is-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ var IS_NODE = require('../internals/engine-is-node');

module.exports = !IS_DENO && !IS_NODE
&& typeof window == 'object'
&& window.document && document.nodeType === 9;
&& typeof document == 'object';

0 comments on commit dc43aac

Please sign in to comment.