Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: background.js

Issue 29329095: Issue 2747 - Added empty state for tables in options page (Closed)
Patch Set: Created Dec. 11, 2015, 4:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | locale/en-US/options.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -175,7 +175,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;})
+ .map(modules.filterClasses.Filter.fromText),
errors: []
};
}
« no previous file with comments | « no previous file | locale/en-US/options.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld