all repos — honk @ 88f85b4463bd1f9762dbc8c01a84fd115715bfaf

my fork of honk

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

88f85b4463bd1f9762dbc8c01a84fd115715bfaf

parent

fa5f06ad856eb945b83f040367ebd6444dc3626a

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

jump to
M views/honkpage.jsviews/honkpage.js

@@ -238,7 +238,6 @@ return function(evt) {

if (name == curpagestate.name && arg == curpagestate.arg) { return false } - console.log("pageswitcher: ", arg) switchtopage(name, arg) var url = evt.srcElement.href if (!url) {

@@ -252,7 +251,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")