mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 12:36:37 +02:00
Removed bug with "add to ignore list"-button & added translations for prompts.
Fixes #41.
This commit is contained in:
parent
0f575a7aed
commit
6c806583f0
5 changed files with 15 additions and 7 deletions
|
@ -56,7 +56,7 @@ exports.notify = function(window, callingStackMsg){
|
|||
accessKey: "",
|
||||
callback: function(){
|
||||
var domain = browser.contentWindow.prompt(
|
||||
"Input domain to add to ignore list:",
|
||||
_("inputIgnoreDomain"),
|
||||
notification.domain
|
||||
);
|
||||
if (domain){
|
||||
|
@ -69,7 +69,7 @@ exports.notify = function(window, callingStackMsg){
|
|||
accessKey: "",
|
||||
callback: function(){
|
||||
var url = browser.contentWindow.prompt(
|
||||
"Input URL RegExp to add to white list:",
|
||||
_("inputWhitelistDomain"),
|
||||
"^" + notification.url.replace(/([\\\+\*\?\[\^\]\$\(\)\{\}\=\!\|\.])/g, "\\$1") + "$"
|
||||
);
|
||||
if (url){
|
||||
|
@ -82,7 +82,7 @@ exports.notify = function(window, callingStackMsg){
|
|||
accessKey: "",
|
||||
callback: function(){
|
||||
var domain = browser.contentWindow.prompt(
|
||||
"Input domain to add to white list:",
|
||||
_("inputWhitelistURL"),
|
||||
notification.domain
|
||||
);
|
||||
if (domain){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue