Support current-catalog link in custom board list on Tinyboard/vichan.
This commit is contained in:
parent
b9d7bd9704
commit
91472e371e
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user