diff --git a/script.js b/script.js index cd4c76e..2b975c6 100644 --- a/script.js +++ b/script.js @@ -258,8 +258,10 @@ window.onload = () => { const url = URL.createObjectURL(blob); a.href = url; a.download = 'logo.png'; - a.click(); - URL.revokeObjectURL(url); + setTimeout(() => { + a.click(); + URL.revokeObjectURL(url); + }, 100); }); ctx.clearRect(canvas.width - 210, 0, canvas.width, 20);