Fix links to boards with same name on other sites being highlighted as the current board.

This commit is contained in:
ccd0 2019-07-08 18:04:31 -07:00
parent 8ee847133a
commit f6c37ce57f

View File

@ -178,7 +178,7 @@ Header =
nodes.push spacer() if chr is '['
when 'A'
a = node.cloneNode true
a.className = 'current' if a.pathname.split('/')[1] is g.BOARD.ID
a.className = 'current' if a.hostname is location.hostname and a.pathname.split('/')[1] is g.BOARD.ID
nodes.push a
fullBoardList = $ '.boardList', Header.boardList
$.add fullBoardList, nodes