From 53f84b5d08cb8f11b2e1b103d4873b487e19b028 Mon Sep 17 00:00:00 2001 From: blue Date: Tue, 20 Nov 2018 18:12:39 +0300 Subject: [PATCH] bugfix --- ui/canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/canvas.js b/ui/canvas.js index eec6021..d5ac4b5 100644 --- a/ui/canvas.js +++ b/ui/canvas.js @@ -20,7 +20,7 @@ class Canvas extends UI { this._ctx.filter = "blur(" + this._blurStrength + "px)"; } getData() { - this.element.toDataURL(); + return this.element.toDataURL(); } draw(shape) { this._ctx.fillStyle = shape.color.rgba();