change keep legacy storage just in case

This commit is contained in:
quenousimporte 2024-02-16 09:46:15 +01:00
parent e8c5d38b3a
commit 717b2a1bce
1 changed files with 2 additions and 1 deletions

View File

@ -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) =>