diff --git a/src/dom/node.js b/src/dom/node.js index 000a7bbd..8ac3455e 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.parentWindow, + window = document.defaultView, navigator = window.navigator, HTMLCanvasElement = Canvas, Image = Canvas.Image;