fixed: trash initialization

This commit is contained in:
quenousimporte 2023-09-29 11:40:00 +02:00
parent 5fe950ce8c
commit fb9af373b3
1 changed files with 1 additions and 1 deletions

View File

@ -2332,7 +2332,7 @@ function rename(newname)
function deletenote(note)
{
var trash = JSON.parse(window.localStorage.getItem("trash")) || [];
var trash = JSON.parse(window.localStorage.getItem("trash") || "[]");
trash.push(note);
window.localStorage.setItem("trash", JSON.stringify(trash));