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

Unified Diff: block.js

Issue 29338009: Issue 3763 - Got rid of redundant "add-filters" message type (Closed)
Patch Set: Update adblockplusui dependency Created March 9, 2016, 3:38 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 | « background.js ('k') | dependencies » ('j') | dependencies » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: block.js
===================================================================
--- a/block.js
+++ b/block.js
@@ -35,15 +35,15 @@
{
ext.backgroundPage.sendMessage(
{
- type: "add-filters",
+ type: "filters.importRaw",
text: document.getElementById("filters").value
},
- function(response)
+ function(errors)
{
- if (response.status == "ok")
+ if (errors.length > 0)
+ alert(errors.join("\n"));
+ else
closeDialog(true);
- else
- alert(response.error);
});
}
« no previous file with comments | « background.js ('k') | dependencies » ('j') | dependencies » ('J')

Powered by Google App Engine
This is Rietveld