mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-02 12:27:27 +01:00
Extended the method to get domainlist (#1)
This commit is contained in:
parent
82993423e9
commit
a35f41cc32
@ -281,14 +281,19 @@ stateManager._removeIconBadgeFromTab = function (tab) {
|
|||||||
stateManager._clearBadgeText(tab.id);
|
stateManager._clearBadgeText(tab.id);
|
||||||
};
|
};
|
||||||
|
|
||||||
stateManager._domainIsWhitelisted = function (domain) {
|
stateManager._domainIsWhitelisted = function (domain, listname = "") {
|
||||||
|
|
||||||
if (domain !== null) {
|
if (domain !== null) {
|
||||||
|
|
||||||
let whitelistRecord, isWhitelisted;
|
let whitelistRecord, isWhitelisted;
|
||||||
|
|
||||||
|
if (listname === "manipulate-dom") {
|
||||||
|
whitelistRecord = requestAnalyzer.manipulateDOMDomains[domain];
|
||||||
|
isWhitelisted = Boolean(whitelistRecord);
|
||||||
|
} else {
|
||||||
whitelistRecord = requestAnalyzer.whitelistedDomains[domain];
|
whitelistRecord = requestAnalyzer.whitelistedDomains[domain];
|
||||||
isWhitelisted = Boolean(whitelistRecord);
|
isWhitelisted = Boolean(whitelistRecord);
|
||||||
|
}
|
||||||
|
|
||||||
return isWhitelisted;
|
return isWhitelisted;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user