1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-05-29 09:28:06 +02:00

Added also prompt for adding to ignore list.

This commit is contained in:
kkapsner 2015-10-11 13:56:28 +02:00
parent 9255fb5813
commit 0f575a7aed
2 changed files with 7 additions and 1 deletions

Binary file not shown.

View File

@ -55,7 +55,13 @@ exports.notify = function(window, callingStackMsg){
label: _("ignorelistDomain"),
accessKey: "",
callback: function(){
lists.appendTo("ignore", notification.domain);
var domain = browser.contentWindow.prompt(
"Input domain to add to ignore list:",
notification.domain
);
if (domain){
lists.appendTo("ignore", domain);
}
}
},
{