mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-10 17:23:18 +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) {
|
||||
// Delete old keys
|
||||
if (typeof items.whitelistedDomains !== 'undefined') {
|
||||
if (Object.keys(items.allowlistedDomains).length === 0) {
|
||||
items.allowlistedDomains = items.whitelistedDomains;
|
||||
if (items.allowlistedDomains === 'undefined' || Object.keys(items.allowlistedDomains).length === 0) {
|
||||
items['allowlistedDomains'] = items.whitelistedDomains;
|
||||
}
|
||||
delete items['whitelistedDomains'];
|
||||
storageManager.type.remove('whitelistedDomains');
|
||||
|
Loading…
Reference in New Issue
Block a user