fix line url param
This commit is contained in:
parent
d838294ddd
commit
a9cb693318
9
main.js
9
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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue