1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Fixed: Delete old keys (#226)

This commit is contained in:
nobody
2021-01-06 07:23:41 +01:00
parent 4fd7614b2f
commit f3777eb8a2
2 changed files with 2 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ main._initializeSettings = function () {
storageManager.type.get(null, function (items) {
// Delete old keys
if (typeof items.whitelistedDomains !== 'undefined') {
if (items.allowlistedDomains === 'undefined' || Object.keys(items.allowlistedDomains).length === 0) {
if (typeof items.allowlistedDomains === 'undefined' || Object.keys(items.allowlistedDomains).length === 0) {
items['allowlistedDomains'] = items.whitelistedDomains;
}
delete items['whitelistedDomains'];