Some obscure issue where #boardNavDesktop is missing, investigating it.
It represents 15% of error reports.
This commit is contained in:
parent
57758fdc8a
commit
e952e0de27
@ -89,6 +89,19 @@ 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
|
||||||
|
# "Header" initialization crashed. TypeError: Cannot read property 'innerHTML' of null
|
||||||
|
# Let's try to find the cause.
|
||||||
|
if nav is null
|
||||||
|
Main.logError
|
||||||
|
message: "Header crash: nav is null"
|
||||||
|
error: new Error """
|
||||||
|
#{!!$.id 'boardNavMobile'}
|
||||||
|
d.readyState = #{d.readyState}
|
||||||
|
doc.className = #{doc.className}
|
||||||
|
d.body.className = #{d.body.className}
|
||||||
|
"""
|
||||||
|
else
|
||||||
fullBoardList.innerHTML = nav.innerHTML
|
fullBoardList.innerHTML = nav.innerHTML
|
||||||
$.rm $ '#navtopright', fullBoardList
|
$.rm $ '#navtopright', fullBoardList
|
||||||
btn = $.el 'span',
|
btn = $.el 'span',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user