actually fix convoys
Anirudh Oppiliappan x@icyphox.sh
Sun, 20 Nov 2022 15:35:03 +0530
1 files changed,
3 insertions(+),
2 deletions(-)
jump to
M
views/honkpage.js
→
views/honkpage.js
@@ -245,7 +245,6 @@ topmenu.open = false
if (name == curpagestate.name && arg == curpagestate.arg) { return false } - console.log("pageswitcher: ", arg) switchtopage(name, arg) var url = evt.srcElement.href if (!url) {@@ -259,7 +258,9 @@ }
function relinklinks() { var els = document.getElementsByClassName("convoylink") while (els.length) { - els[0].onclick = pageswitcher("convoy", els[0].href) + var s = (new URL(els[0].href)).search + var c = new URLSearchParams(s).get('c') + els[0].onclick = pageswitcher("convoy", c) els[0].classList.remove("convoylink") } els = document.getElementsByClassName("combolink")