change keep legacy storage just in case
This commit is contained in:
parent
e8c5d38b3a
commit
717b2a1bce
3
main.js
3
main.js
|
@ -1305,7 +1305,8 @@ function migratelegacystorage()
|
||||||
var legacy = localStorage.getItem("data");
|
var legacy = localStorage.getItem("data");
|
||||||
if (legacy)
|
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);
|
legacy = JSON.parse(legacy);
|
||||||
var index = {};
|
var index = {};
|
||||||
legacy.reverse().forEach( (note, i) =>
|
legacy.reverse().forEach( (note, i) =>
|
||||||
|
|
Loading…
Reference in New Issue