mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Fixed: Migrate extension settings (#92)
This commit is contained in:
@ -402,6 +402,11 @@ options._onStorageOptionChanged = function ({ target }) {
|
||||
chrome.storage.local.set({
|
||||
[Setting.STORAGE_TYPE]: target.value,
|
||||
});
|
||||
if (target.value === 'local') {
|
||||
storageManager.migrateData('local');
|
||||
} else {
|
||||
storageManager.migrateData('sync');
|
||||
}
|
||||
};
|
||||
|
||||
options._onLinkClick = function (url) {
|
||||
|
Reference in New Issue
Block a user