Browse Source
Update src/index.js
Co-Authored-By: Luke Childs <lukechilds123@gmail.com>
pull/37/head
Filip Stanis
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/index.js
|
|
@ -4,7 +4,7 @@ const { JSDOM, ResourceLoader } = require('jsdom'); |
|
|
|
// Accepts a jsdom config object.
|
|
|
|
module.exports = class Window { |
|
|
|
constructor(jsdomConfig = {}) { |
|
|
|
let resources = jsdomConfig.resources; |
|
|
|
let {resources} = jsdomConfig; |
|
|
|
if (!resources) { |
|
|
|
const { proxy, strictSSL, userAgent } = jsdomConfig; |
|
|
|
resources = new ResourceLoader({ |
|
|
|