mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Initialize extension storage for domains to manipulate DOM (#1)
This commit is contained in:
@@ -69,7 +69,8 @@ const Setting = {
|
|||||||
'LAST_MAPPING_UPDATE': 'lastMappingUpdate',
|
'LAST_MAPPING_UPDATE': 'lastMappingUpdate',
|
||||||
'WHITELISTED_DOMAINS': 'whitelistedDomains',
|
'WHITELISTED_DOMAINS': 'whitelistedDomains',
|
||||||
'XHR_TEST_DOMAIN': 'xhrTestDomain',
|
'XHR_TEST_DOMAIN': 'xhrTestDomain',
|
||||||
'LOGGING': 'enableLogging'
|
'LOGGING': 'enableLogging',
|
||||||
|
'DOMAINS_MANIPULATE_DOM': 'domainsManipulateDOM'
|
||||||
};
|
};
|
||||||
|
|
||||||
const WebRequest = {
|
const WebRequest = {
|
||||||
|
@@ -34,7 +34,8 @@ main._initializeSettings = function () {
|
|||||||
[Setting.HIDE_RELEASE_NOTES]: false,
|
[Setting.HIDE_RELEASE_NOTES]: false,
|
||||||
[Setting.STRIP_METADATA]: true,
|
[Setting.STRIP_METADATA]: true,
|
||||||
[Setting.WHITELISTED_DOMAINS]: {},
|
[Setting.WHITELISTED_DOMAINS]: {},
|
||||||
[Setting.LOGGING]: false
|
[Setting.LOGGING]: false,
|
||||||
|
[Setting.DOMAINS_MANIPULATE_DOM]: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
chrome.storage.local.get(settingDefaults, function (items) {
|
chrome.storage.local.get(settingDefaults, function (items) {
|
||||||
|
Reference in New Issue
Block a user