diff --git a/src/dom/node.js b/src/dom/node.js index b367cfe9..000a7bbd 100644 --- a/src/dom/node.js +++ b/src/dom/node.js @@ -22,7 +22,7 @@ var jsdom = require('jsdom'), // Expose global browser variables and create a document and a window using // jsdom, e.g. for import/exportSVG() document = jsdom.jsdom(''), - window = document.createWindow(), + window = document.parentWindow, navigator = window.navigator, HTMLCanvasElement = Canvas, Image = Canvas.Image;