oh gott bin ich blöd

This commit is contained in:
Andreas Grasser 2022-11-28 18:28:48 +01:00
parent 8ac873d481
commit 8d9b8de959
No known key found for this signature in database
GPG key ID: A6A70D76EF291D77

View file

@ -198,7 +198,7 @@ function httpRequest(url, callback, callbackVal=null)
function downloadImage(){ function downloadImage(){
var lnk = document.createElement('a'), e; var lnk = document.createElement('a'), e;
lnk.download = 'mastodon-circle.png'; lnk.download = 'mastodon-circle.png';
lnk.href = canvas.toDataURL("image/png;base64"); lnk.href = document.getElementById("canvas").toDataURL("image/png;base64");
if (document.createEvent) { if (document.createEvent) {
e = document.createEvent("MouseEvents"); e = document.createEvent("MouseEvents");