Fixed error when querying from list to manipulate DOM

This commit is contained in:
nobody 2020-05-27 18:33:29 +02:00
parent a1cbd8832c
commit 16140d8b52
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
let initiatorDomain, listedToManipulateDOM;
listedToManipulateDOM = stateManager._domainIsListed(initiatorDomain, "manipulate-dom");
initiatorDomain = helpers.extractDomainFromUrl(details.url, true) || Address.EXAMPLE;
listedToManipulateDOM = stateManager._domainIsListed(initiatorDomain, "manipulate-dom");
// by Jaap (https://gitlab.com/Jaaap)
let header = details.responseHeaders.find(h => h.name.toLowerCase() === 'content-type');

View File

@ -281,7 +281,7 @@ stateManager._removeIconBadgeFromTab = function (tab) {
stateManager._clearBadgeText(tab.id);
};
stateManager._domainIsListed = function (domain, listname = "") {
stateManager._domainIsListed = function (domain, listname) {
if (domain !== null) {