From 0d436b0516b2dcfb929c763e8cbdc659c381d5c8 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Sun, 4 Feb 2024 22:45:41 +0100 Subject: [PATCH] fix note restore --- main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }