diff --git a/docs/js/app.js b/docs/js/app.js index 2d3a2bf..b4e11e8 100644 --- a/docs/js/app.js +++ b/docs/js/app.js @@ -114,7 +114,7 @@ $(function () { imgEl.src = base64; }; fr.readAsDataURL(imageFile); - imgEl.addEventListener("load", () => drawCanvas()); + imgEl.onload = () => drawCanvas(); }; const drawCanvas = function (redraw = false) {