Commit 5f4291cf authored by Andrea Giammarchi's avatar Andrea Giammarchi

Issue 7231 - Cumulative fixes for io-filter-search

Cumulative patches for #302 #293 #291 #289 #283 #280
parent fba4fdd2
......@@ -166,6 +166,7 @@ class IOFilterTable extends IOElement
{
const filters = event.detail
.split(/(?:\r\n|\n)/)
.map(text => ({text}))
.reverse();
browser.runtime.sendMessage({
......@@ -194,6 +195,9 @@ class IOFilterTable extends IOElement
}
else
{
// force the footer to be visible since errors are shown there
this.renderFooter();
this.footer.classList.add("visible");
this.onerror({detail: {errors}});
}
});
......
......@@ -28,6 +28,6 @@
},
"unexpected_filter_list_header": {
"description": "Error message shown when the user attempts to add a custom filter that has the format of a header (e.g. \"[Adblock Plus 2.0]\") which are only allowed in filter lists",
"message": "Filter list headers aren't allowed here"
"message": "Filter list headers are only supported in downloadable filter lists."
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment