Index: background.js |
=================================================================== |
--- a/background.js |
+++ b/background.js |
@@ -176,7 +176,9 @@ |
if (params.filterError) |
return {errors: ["Invalid filter"]}; |
return { |
- filters: text.split("\n").map(modules.filterClasses.Filter.fromText), |
+ filters: text.split("\n") |
+ .filter(function(filter) {return !!filter;}) |
saroyanm
2015/11/30 11:24:21
nice.
|
+ .map(modules.filterClasses.Filter.fromText), |
errors: [] |
}; |
} |