Allow user to set file name

This commit is contained in:
IA 2020-01-05 02:44:11 +00:00 committed by Israel Adura
parent 7201198f23
commit 67e499321c

View file

@ -583,6 +583,7 @@ function exportAsPNG({
}) {
if (!elements.length) return window.alert("Cannot export empty canvas.");
const fileName = prompt("Enter name of project");
// calculate smallest area to fit the contents in
let subCanvasX1 = Infinity;