Browse Source

Don't name function window, this conflicts with global window in browser-env

pull/2/head
Luke Childs 8 years ago
parent
commit
85fc565de2
  1. 2
      src/index.js

2
src/index.js

@ -4,4 +4,4 @@ const jsdom = require('jsdom');
// Accepts a jsdom config object.
// Config object must be cloned before passing through otherwise jsdom will add
// lots of properties to the original reference.
module.exports = window = (jsdomConfig = {}) => jsdom.jsdom('', Object.assign({}, jsdomConfig)).defaultView;
module.exports = (jsdomConfig = {}) => jsdom.jsdom('', Object.assign({}, jsdomConfig)).defaultView;

Loading…
Cancel
Save