Fixed options page (#138)

This commit is contained in:
nobody 2020-10-17 07:39:28 +02:00
parent 5a1ae1f6c6
commit bd9745da74
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 7 additions and 1 deletions

View File

@ -69,7 +69,7 @@ const Setting = {
'HIDE_RELEASE_NOTES': 'hideReleaseNotes',
'STRIP_METADATA': 'stripMetadata',
'LAST_MAPPING_UPDATE': 'lastMappingUpdate',
'ALLOWLISTED_DOMAINS': 'whitelistedDomains',
'ALLOWLISTED_DOMAINS': 'allowlistedDomains',
'XHR_TEST_DOMAIN': 'xhrTestDomain',
'LOGGING': 'enableLogging',
'DOMAINS_MANIPULATE_DOM': 'domainsManipulateDOM',

View File

@ -41,6 +41,12 @@ main._initializeSettings = function () {
'value': false
});
}
// Copy old data
if (items.allowlistedDomains === null) {
items.allowlistedDomains = items.whitelistedDomains;
}
stateManager.selectedIcon = items.selectedIcon;
wrappers.setIcon({
'path': stateManager.selectedIcon