mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-10 17:23:18 +01:00
Fixed options page (#138)
This commit is contained in:
parent
5a1ae1f6c6
commit
bd9745da74
@ -69,7 +69,7 @@ const Setting = {
|
|||||||
'HIDE_RELEASE_NOTES': 'hideReleaseNotes',
|
'HIDE_RELEASE_NOTES': 'hideReleaseNotes',
|
||||||
'STRIP_METADATA': 'stripMetadata',
|
'STRIP_METADATA': 'stripMetadata',
|
||||||
'LAST_MAPPING_UPDATE': 'lastMappingUpdate',
|
'LAST_MAPPING_UPDATE': 'lastMappingUpdate',
|
||||||
'ALLOWLISTED_DOMAINS': 'whitelistedDomains',
|
'ALLOWLISTED_DOMAINS': 'allowlistedDomains',
|
||||||
'XHR_TEST_DOMAIN': 'xhrTestDomain',
|
'XHR_TEST_DOMAIN': 'xhrTestDomain',
|
||||||
'LOGGING': 'enableLogging',
|
'LOGGING': 'enableLogging',
|
||||||
'DOMAINS_MANIPULATE_DOM': 'domainsManipulateDOM',
|
'DOMAINS_MANIPULATE_DOM': 'domainsManipulateDOM',
|
||||||
|
@ -41,6 +41,12 @@ main._initializeSettings = function () {
|
|||||||
'value': false
|
'value': false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Copy old data
|
||||||
|
if (items.allowlistedDomains === null) {
|
||||||
|
items.allowlistedDomains = items.whitelistedDomains;
|
||||||
|
}
|
||||||
|
|
||||||
stateManager.selectedIcon = items.selectedIcon;
|
stateManager.selectedIcon = items.selectedIcon;
|
||||||
wrappers.setIcon({
|
wrappers.setIcon({
|
||||||
'path': stateManager.selectedIcon
|
'path': stateManager.selectedIcon
|
||||||
|
Loading…
Reference in New Issue
Block a user