From 717b2a1bcea7b673d9989cf3593a00fa23a35e7a Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Fri, 16 Feb 2024 09:46:15 +0100 Subject: [PATCH] change keep legacy storage just in case --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index b1b2ab7..b6622d6 100644 --- a/main.js +++ b/main.js @@ -1305,7 +1305,8 @@ function migratelegacystorage() var legacy = localStorage.getItem("data"); if (legacy) { - alert("Hey! I am about to migrate your notes to the brand new data model. No worries, I will keep a backup somewhere in case things go wrong. Take a deep breath, and click ok when you're ready.") + alert("Hey! I am about to migrate your notes to the brand new data model. No worries, I will keep a backup somewhere in case things go wrong. Take a deep breath, and click ok when you're ready."); + localStorage.setItem("legacy", legacy); legacy = JSON.parse(legacy); var index = {}; legacy.reverse().forEach( (note, i) =>