diff --git a/main.js b/main.js index 23bf489..3ffb3f6 100644 --- a/main.js +++ b/main.js @@ -28,7 +28,8 @@ var previoustitle = ""; var metadata = null; var fileindex = 0; var workerid = null; -var backup = "";var settings = null; +var backup = ""; +var settings = null; var tags = null; var commands = [ @@ -2480,7 +2481,7 @@ function deletecurrentnote() function restore() { - if (confirm('restore "' + currentnote.title + '"?')) + if (confirm('restore "' + title.value + '"?')) { seteditorcontent(backup); }