From c0c8079913a5234765fd5c504e31c45c97673abb Mon Sep 17 00:00:00 2001 From: Russell Vea Date: Thu, 26 Feb 2015 16:56:26 -1000 Subject: [PATCH] Update to use jsdom v4 (document.defaultView vs. document.parentWindow). --- src/dom/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;