mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 10:48:38 -05:00
Update to use jsdom v4 (document.defaultView vs. document.parentWindow).
This commit is contained in:
parent
15813107c0
commit
c0c8079913
1 changed files with 1 additions and 1 deletions
|
@ -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('<html><body></body></html>'),
|
||||
window = document.parentWindow,
|
||||
window = document.defaultView,
|
||||
navigator = window.navigator,
|
||||
HTMLCanvasElement = Canvas,
|
||||
Image = Canvas.Image;
|
||||
|
|
Loading…
Reference in a new issue