mirror of
				https://codeberg.org/nobody/LocalCDN.git
				synced 2025-06-05 21:49:31 +02:00 
			
		
		
		
	Improved: Settings with old values
This commit is contained in:
		| @@ -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'); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user