diff --git a/index.html b/index.html index 2dfe24f..e0a5f03 100644 --- a/index.html +++ b/index.html @@ -333,7 +333,7 @@ }; function quickSaveFile(content) { - const fileName = prompt("File name to quick save as:", `${currentFile}`); + const fileName = prompt("File name to quick save as:", `${currentFile}`) || `${currentFile}`; const blob = new Blob([content], { type: "text/plain" }); const a = document.createElement("a"); a.href = URL.createObjectURL(blob);