From 8d9b8de959d78f1702ddf6a8cc8e9ddeadacb93d Mon Sep 17 00:00:00 2001 From: Andreas Grasser Date: Mon, 28 Nov 2022 18:28:48 +0100 Subject: [PATCH] =?UTF-8?q?oh=20gott=20bin=20ich=20bl=C3=B6d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- create-circle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-circle.js b/create-circle.js index 13c56b9..dc26f40 100644 --- a/create-circle.js +++ b/create-circle.js @@ -198,7 +198,7 @@ function httpRequest(url, callback, callbackVal=null) function downloadImage(){ var lnk = document.createElement('a'), e; lnk.download = 'mastodon-circle.png'; - lnk.href = canvas.toDataURL("image/png;base64"); + lnk.href = document.getElementById("canvas").toDataURL("image/png;base64"); if (document.createEvent) { e = document.createEvent("MouseEvents");