Skip to content

Commit

Permalink
Fix blur for node.js (fabricjs#4905)
Browse files Browse the repository at this point in the history
  • Loading branch information
antucg authored and asturur committed Apr 13, 2018
1 parent f59a523 commit 5df4b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filters/blur_filter.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
height = options.imageData.height;

if (!resources.blurLayer1) {
resources.blurLayer1 = document.createElement('canvas');
resources.blurLayer2 = document.createElement('canvas');
resources.blurLayer1 = fabric.util.createCanvasElement();
resources.blurLayer2 = fabric.util.createCanvasElement();
}
canvas1 = resources.blurLayer1;
canvas2 = resources.blurLayer2;
Expand Down

0 comments on commit 5df4b99

Please sign in to comment.