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;