all repos — honk @ 4b0d5649760218643d6499419158c2543dc94dad

my fork of honk

actually fix convoys
Anirudh Oppiliappan x@icyphox.sh
Sun, 20 Nov 2022 15:35:03 +0530
commit

4b0d5649760218643d6499419158c2543dc94dad

parent

2134c5c95464e7958a62b5bf686726e2caf38ecc

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M views/honkpage.jsviews/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")