Attempt to fix some obscure Redirect initialization bugs.
This commit is contained in:
parent
5267b93317
commit
6e1109d9a9
@ -5,6 +5,14 @@ Redirect =
|
||||
file: {}
|
||||
|
||||
init: ->
|
||||
try
|
||||
Conf['archives'].length
|
||||
catch err
|
||||
# XXX I get obscure reports of:
|
||||
# "Redirect" initialization crashed. TypeError: Cannot read property 'length' of undefined
|
||||
# comming from here.
|
||||
Conf['archives'] = Redirect.archives
|
||||
$.delete ['archives', 'lastarchivecheck']
|
||||
Redirect.update()
|
||||
|
||||
for boardID, data of Conf['selectedArchives']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user