From bd9745da740417da32dd842ea209947d26c6e156 Mon Sep 17 00:00:00 2001 From: nobody Date: Sat, 17 Oct 2020 07:39:28 +0200 Subject: [PATCH] Fixed options page (#138) --- core/constants.js | 2 +- core/main.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/constants.js b/core/constants.js index 1b1f6ca1..416a1d71 100644 --- a/core/constants.js +++ b/core/constants.js @@ -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', diff --git a/core/main.js b/core/main.js index 405aed30..57997741 100644 --- a/core/main.js +++ b/core/main.js @@ -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