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();