diff --git a/main.js b/main.js index ac2f832..b1b2ab7 100644 --- a/main.js +++ b/main.js @@ -1305,7 +1305,7 @@ function migratelegacystorage() var legacy = localStorage.getItem("data"); if (legacy) { - alert("Old data model detected. Click ok to migrate, or close app.") + 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.") legacy = JSON.parse(legacy); var index = {}; legacy.reverse().forEach( (note, i) => @@ -1366,7 +1366,14 @@ function fetch() { if (!filecontent) { - pushall().then(resolve); + if (confirm("No remote index found. Init remote now?")) + { + pushall().then(resolve); + } + else + { + resolve(); + } } else { @@ -2813,7 +2820,7 @@ function bind(title, content, pos) { if (workerid) { - showtemporaryinfo("current note not yet serialized"); + showtemporaryinfo("Cannot open '" + title + "' because current note not yet serialized"); return; }