I couldn't find the exact cause, I suspect people are just adblocking random elements and expect not to break things.
This commit is contained in:
parent
ffd98de110
commit
b2ec75510b
@ -89,17 +89,13 @@ Header =
|
|||||||
if a = $ "a[href*='/#{g.BOARD}/']", nav
|
if a = $ "a[href*='/#{g.BOARD}/']", nav
|
||||||
a.className = 'current'
|
a.className = 'current'
|
||||||
fullBoardList = $ '#full-board-list', Header.bar
|
fullBoardList = $ '#full-board-list', Header.bar
|
||||||
# XXX Getting weird reports here of
|
fullBoardList.innerHTML = nav.innerHTML
|
||||||
# "Header" initialization crashed. TypeError: Cannot read property 'innerHTML' of null
|
$.rm $ '#navtopright', fullBoardList
|
||||||
# Let's try to find the cause.
|
btn = $.el 'span',
|
||||||
if nav
|
className: 'hide-board-list-button brackets-wrap'
|
||||||
fullBoardList.innerHTML = nav.innerHTML
|
innerHTML: '<a href=javascript:;> - </a>'
|
||||||
$.rm $ '#navtopright', fullBoardList
|
$.on btn, 'click', Header.toggleBoardList
|
||||||
btn = $.el 'span',
|
$.add fullBoardList, btn
|
||||||
className: 'hide-board-list-button brackets-wrap'
|
|
||||||
innerHTML: '<a href=javascript:;> - </a>'
|
|
||||||
$.on btn, 'click', Header.toggleBoardList
|
|
||||||
$.add fullBoardList, btn
|
|
||||||
|
|
||||||
Header.setCustomNav Conf['Custom Board Navigation']
|
Header.setCustomNav Conf['Custom Board Navigation']
|
||||||
Header.generateBoardList Conf['boardnav']
|
Header.generateBoardList Conf['boardnav']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user