Try to fix an obscure bug.

This commit is contained in:
Mayhem 2013-05-14 21:42:04 +02:00
parent 74f9df889a
commit 60bfc25f7e

View File

@ -5,6 +5,11 @@ Filter =
for key of Config.filter
@filters[key] = []
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
$.delete key
continue
for filter in Conf[key].split '\n'
continue if filter[0] is '#'