changed: serialize trash once data is saved

This commit is contained in:
quenousimporte 2023-09-29 22:45:13 +02:00
parent e4bcad0420
commit e714b4684c
1 changed files with 1 additions and 2 deletions

View File

@ -2353,13 +2353,12 @@ function restoredeleted()
if (index > -1)
{
var notetorestore = trash.splice(index, 1).pop();
window.localStorage.setItem("trash", JSON.stringify(trash));
notetorestore.title += " - restored on " + timestamp();
delete notetorestore.deletiondate;
localdata.unshift(notetorestore);
loadnote(notetorestore.title);
datachanged();
window.localStorage.setItem("trash", JSON.stringify(trash));
}
}
});