mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-22 23:40:39 +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._domainIsWhitelisted = function (domain) {
|
||||
stateManager._domainIsWhitelisted = function (domain, listname = "") {
|
||||
|
||||
if (domain !== null) {
|
||||
|
||||
let whitelistRecord, isWhitelisted;
|
||||
|
||||
whitelistRecord = requestAnalyzer.whitelistedDomains[domain];
|
||||
isWhitelisted = Boolean(whitelistRecord);
|
||||
if (listname === "manipulate-dom") {
|
||||
whitelistRecord = requestAnalyzer.manipulateDOMDomains[domain];
|
||||
isWhitelisted = Boolean(whitelistRecord);
|
||||
} else {
|
||||
whitelistRecord = requestAnalyzer.whitelistedDomains[domain];
|
||||
isWhitelisted = Boolean(whitelistRecord);
|
||||
}
|
||||
|
||||
return isWhitelisted;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user