mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-02 12:27:27 +01:00
Fixed error when querying from list to manipulate DOM
This commit is contained in:
parent
a1cbd8832c
commit
16140d8b52
@ -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');
|
||||
|
@ -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) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user