Attempt 1 fixing quick save
This commit is contained in:
parent
280e804f19
commit
ae036b662b
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
function quickSaveFile(content) {
|
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 blob = new Blob([content], { type: "text/plain" });
|
||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
a.href = URL.createObjectURL(blob);
|
a.href = URL.createObjectURL(blob);
|
||||||
|
|
Loading…
Reference in a new issue