Attempt to fix some obscure Redirect initialization bugs.

This commit is contained in:
Mayhem 2013-05-12 23:30:16 +02:00
parent 5267b93317
commit 6e1109d9a9

View File

@ -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']