From c514f08b4e4fbaf567a4ae4c9e2e874b8fadef27 Mon Sep 17 00:00:00 2001 From: Antonio Date: Fri, 13 Apr 2018 09:33:35 +0100 Subject: [PATCH] Fix blur for node.js --- src/filters/blur_filter.class.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filters/blur_filter.class.js b/src/filters/blur_filter.class.js index 7e825e53fbd..59a735a8b37 100644 --- a/src/filters/blur_filter.class.js +++ b/src/filters/blur_filter.class.js @@ -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;