Test the water, see if we can start removing these workarounds.
This commit is contained in:
parent
982ec6ecc6
commit
399df131fd
@ -11,6 +11,11 @@ Redirect =
|
||||
# XXX I get obscure reports of:
|
||||
# "Redirect" initialization crashed. TypeError: Cannot read property 'length' of undefined
|
||||
# comming from here.
|
||||
Main.logError
|
||||
message: "XXX Conf['archives'].length still failing"
|
||||
error: new Error """
|
||||
Conf['archives'] === #{JSON.stringify Conf['archives']}
|
||||
"""
|
||||
Conf['archives'] = Redirect.archives
|
||||
$.delete ['archives', 'lastarchivecheck']
|
||||
Redirect.update()
|
||||
|
||||
@ -8,6 +8,11 @@ Filter =
|
||||
if Conf[key] is undefined
|
||||
# XXX hopefully tmp fix for the rare people getting this mysterious error:
|
||||
# "Filter" initialization crashed. TypeError: Cannot call method 'split' of undefined
|
||||
Main.logError
|
||||
message: 'XXX some filters are still undefined'
|
||||
error: new Error """
|
||||
Conf[#{key}] === undefined
|
||||
"""
|
||||
$.delete key
|
||||
continue
|
||||
for filter in Conf[key].split '\n'
|
||||
|
||||
@ -60,6 +60,12 @@ class DataBoard
|
||||
# XXX tmp fix for users that had the `null`
|
||||
# value for a board with the Unread features:
|
||||
if typeof @data.boards[boardID] isnt 'object'
|
||||
Main.logError
|
||||
message: 'XXX weird DataBoard values'
|
||||
error: new Error """
|
||||
@key === #{@key}
|
||||
@data.boards[#{boardID}] === #{@data.boards[boardID]}
|
||||
"""
|
||||
delete @data.boards[boardID]
|
||||
else
|
||||
@deleteIfEmpty {boardID}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user