1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-01-23 07:51:48 +01:00

Delete old settings (#138, #174)

This commit is contained in:
nobody 2020-11-14 12:33:40 +01:00
parent 8280cc947b
commit e66e1a0ee3
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

@ -47,6 +47,12 @@ main._initializeSettings = function () {
items.allowlistedDomains = items.whitelistedDomains;
}
// Delete old key
if (typeof items.whitelistedDomains !== 'undefined') {
delete items['whitelistedDomains'];
storageManager.type.remove('whitelistedDomains');
}
// Convert value of notifications
if (typeof items.hideReleaseNotes !== 'undefined') {
items.updateNotification = items.hideReleaseNotes ? 0 : 2;