fix line url param

This commit is contained in:
quenousimporte 2024-02-15 10:16:23 +01:00
parent d838294ddd
commit a9cb693318
1 changed files with 6 additions and 3 deletions

View File

@ -1141,9 +1141,6 @@ function loadstorage()
} }
var params = new URLSearchParams(window.location.search); 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"); var clip = params.get("c");
if (clip) if (clip)
@ -1159,6 +1156,7 @@ function loadstorage()
window.close(); window.close();
} }
var title = params.get("n") || params.get("name");
if (window.title.value) if (window.title.value)
{ {
// reload current // reload current
@ -1167,6 +1165,11 @@ function loadstorage()
else if (title) else if (title)
{ {
loadnote(title); loadnote(title);
var line = params.get("l");
if (line)
{
gotoline(parseInt(line));
}
} }
else else
{ {