Support current-catalog link in custom board list on Tinyboard/vichan.

This commit is contained in:
ccd0 2018-12-11 18:54:38 -08:00
parent b9d7bd9704
commit 91472e371e

View File

@ -234,7 +234,9 @@ Header =
href: "/#{g.BOARD.ID}/"
textContent: text or g.BOARD.ID
className: 'current'
if /-(catalog|archive|expired)/.test(t)
if /-catalog/.test(t)
a.href += 'catalog.html'
else if /-(archive|expired)/.test(t)
a = a.firstChild # Its text node.
return a