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); |
}); |
} |