1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Enabled whitelisting of local files

Fixes #373
This commit is contained in:
kkapsner 2019-06-25 23:22:55 +02:00
parent 7cd89dec99
commit 7037804b6f
5 changed files with 13 additions and 3 deletions

View file

@ -109,7 +109,7 @@
node.appendChild(document.createTextNode(messageParts.shift()));
while (messageParts.length){
var urlSpan = document.createElement("span");
urlSpan.textContent = this.domain;
urlSpan.textContent = this.domain || extension.getTranslation("localFile");
urlSpan.className = "url hasHiddenActions";
urlSpan.appendChild(this.actionsNode());
node.appendChild(urlSpan);

View file

@ -68,7 +68,9 @@
value: "^" + url.replace(/([\\+*?[^\]$(){}=!|.])/g, "\\$1") + "$"
};
});
choices.unshift(domain);
if (domain){
choices.unshift(domain);
}
return modalChoice(
selectText,
choices