mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-16 22:10:32 +00:00
change initial jsdom declaration
This commit is contained in:
parent
549ea1776b
commit
44b9e7e520
1 changed files with 3 additions and 1 deletions
|
|
@ -14,7 +14,9 @@ if (typeof document !== 'undefined' && typeof window !== 'undefined') {
|
|||
else {
|
||||
// assume we're running under node.js when document/window are not present
|
||||
fabric.document = require("jsdom")
|
||||
.jsdom("<!DOCTYPE html><html><head></head><body></body></html>");
|
||||
.jsdom(
|
||||
decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E")
|
||||
);
|
||||
|
||||
if (fabric.document.createWindow) {
|
||||
fabric.window = fabric.document.createWindow();
|
||||
|
|
|
|||
Loading…
Reference in a new issue