1
0
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:
nobody
2020-09-06 11:19:35 +02:00
parent f504ae1649
commit 3fcae3c54d
3 changed files with 67 additions and 25 deletions

View File

@ -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) {