From a9cb6933189669244f57bd4b3a3d304627927dd1 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Thu, 15 Feb 2024 10:16:23 +0100 Subject: [PATCH] fix line url param --- main.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 {