mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-11 01:25:32 +01:00
Improved: Settings with old values
This commit is contained in:
parent
de4b23a129
commit
bb7a90cd37
@ -34,8 +34,8 @@ main._initializeSettings = function () {
|
|||||||
storageManager.type.get(null, function (items) {
|
storageManager.type.get(null, function (items) {
|
||||||
// Delete old keys
|
// Delete old keys
|
||||||
if (typeof items.whitelistedDomains !== 'undefined') {
|
if (typeof items.whitelistedDomains !== 'undefined') {
|
||||||
if (Object.keys(items.allowlistedDomains).length === 0) {
|
if (items.allowlistedDomains === 'undefined' || Object.keys(items.allowlistedDomains).length === 0) {
|
||||||
items.allowlistedDomains = items.whitelistedDomains;
|
items['allowlistedDomains'] = items.whitelistedDomains;
|
||||||
}
|
}
|
||||||
delete items['whitelistedDomains'];
|
delete items['whitelistedDomains'];
|
||||||
storageManager.type.remove('whitelistedDomains');
|
storageManager.type.remove('whitelistedDomains');
|
||||||
|
Loading…
Reference in New Issue
Block a user