Failure to quickload due to a lack of a save no longer clears the canvas

This commit is contained in:
An Orbit 2024-06-28 16:11:38 -04:00 committed by GitHub
parent e9fb1bfa86
commit fd5050e299
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -12903,13 +12903,13 @@ color1 and color2 spread through striped paint like dye does with itself. <u>col
};
};
function quickload(pause=true,doSuccessAlert=true,doFailAlert=true) {
clearAll();
rebuildCurrentPixels();
var save = localStorage.getItem("quicksave");
if(!save) {
if(doFailAlert) { alert("No save exists") };
return false;
} else {
clearAll();
rebuildCurrentPixels();
importJsonState(JSON.parse(save));
if(doSuccessAlert) { alert("Quicksave loaded") };
if(pause) {