Attempt 1 fixing quick save

This commit is contained in:
The Ghost of FOSS' Future 2024-09-17 19:09:12 -05:00 committed by GitHub
parent 280e804f19
commit ae036b662b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);