From 67e499321c2429be289991466668f23bf3fd311b Mon Sep 17 00:00:00 2001 From: IA Date: Sun, 5 Jan 2020 02:44:11 +0000 Subject: [PATCH] Allow user to set file name --- src/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.tsx b/src/index.tsx index b308c6ebe..ff6dbacc8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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;