aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnirudh Oppiliappan <x@icyphox.sh>2022-11-20 10:05:03 +0000
committerAnirudh Oppiliappan <x@icyphox.sh>2022-11-20 10:05:03 +0000
commit88f85b4463bd1f9762dbc8c01a84fd115715bfaf (patch)
tree72f8ebcc7d38a49bd85cb1f87cc988c27f36f8fd
parentfa5f06ad856eb945b83f040367ebd6444dc3626a (diff)
actually fix convoys
-rw-r--r--views/honkpage.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/honkpage.js b/views/honkpage.js
index 4df235b..9aa378e 100644
--- a/views/honkpage.js
+++ b/views/honkpage.js
@@ -238,7 +238,6 @@ function pageswitcher(name, arg) {
238 if (name == curpagestate.name && arg == curpagestate.arg) { 238 if (name == curpagestate.name && arg == curpagestate.arg) {
239 return false 239 return false
240 } 240 }
241 console.log("pageswitcher: ", arg)
242 switchtopage(name, arg) 241 switchtopage(name, arg)
243 var url = evt.srcElement.href 242 var url = evt.srcElement.href
244 if (!url) { 243 if (!url) {
@@ -252,7 +251,9 @@ function pageswitcher(name, arg) {
252function relinklinks() { 251function relinklinks() {
253 var els = document.getElementsByClassName("convoylink") 252 var els = document.getElementsByClassName("convoylink")
254 while (els.length) { 253 while (els.length) {
255 els[0].onclick = pageswitcher("convoy", els[0].href) 254 var s = (new URL(els[0].href)).search
255 var c = new URLSearchParams(s).get('c')
256 els[0].onclick = pageswitcher("convoy", c)
256 els[0].classList.remove("convoylink") 257 els[0].classList.remove("convoylink")
257 } 258 }
258 els = document.getElementsByClassName("combolink") 259 els = document.getElementsByClassName("combolink")