mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Fetch or save domain into extension storage (#1)
This commit is contained in:
@@ -172,6 +172,12 @@ requestAnalyzer._applyWhitelistedDomains = function () {
|
||||
requestAnalyzer.whitelistedDomains = items.whitelistedDomains || {};
|
||||
});
|
||||
};
|
||||
requestAnalyzer._applyManipulateDOMDomains = function () {
|
||||
|
||||
chrome.storage.local.get(Setting.DOMAINS_MANIPULATE_DOM, function (items) {
|
||||
requestAnalyzer.manipulateDOMDomains = items.manipulateDOMDomains || {};
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Initializations
|
||||
@@ -180,8 +186,11 @@ requestAnalyzer._applyWhitelistedDomains = function () {
|
||||
requestAnalyzer.whitelistedDomains = {};
|
||||
requestAnalyzer._applyWhitelistedDomains();
|
||||
|
||||
requestAnalyzer.domainsManipulateDOMlist = {};
|
||||
requestAnalyzer._applyManipulateDOMDomains();
|
||||
/**
|
||||
* Event Handlers
|
||||
*/
|
||||
|
||||
chrome.storage.onChanged.addListener(requestAnalyzer._applyWhitelistedDomains);
|
||||
chrome.storage.onChanged.addListener(requestAnalyzer._applyManipulateDOMDomains);
|
||||
|
Reference in New Issue
Block a user