diff --git a/main.js b/main.js index d64b890..aa658da 100644 --- a/main.js +++ b/main.js @@ -1141,9 +1141,6 @@ function loadstorage() } var params = new URLSearchParams(window.location.search); - var title = params.get("n") || params.get("name"); - var line = params.get("l"); - var tags = params.get("t"); var clip = params.get("c"); if (clip) @@ -1159,6 +1156,7 @@ function loadstorage() window.close(); } + var title = params.get("n") || params.get("name"); if (window.title.value) { // reload current @@ -1167,6 +1165,11 @@ function loadstorage() else if (title) { loadnote(title); + var line = params.get("l"); + if (line) + { + gotoline(parseInt(line)); + } } else {