mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-05-07 18:52:04 +02:00
Update migrateDictionary to account for changes
This commit is contained in:
parent
e6b973165a
commit
b476b69bb4
1 changed files with 3 additions and 0 deletions
|
@ -304,8 +304,11 @@ export function migrateDictionary() {
|
|||
window.currentDictionary = Object.assign({}, DEFAULT_DICTIONARY, window.currentDictionary);
|
||||
window.currentDictionary.partsOfSpeech = window.currentDictionary.settings.partsOfSpeech.split(',').map(val => val.trim()).filter(val => val !== '');
|
||||
delete window.currentDictionary.settings.partsOfSpeech;
|
||||
delete window.currentDictionary.nextWordId;
|
||||
window.currentDictionary.settings.sortByDefinition = window.currentDictionary.settings.sortByEquivalent;
|
||||
delete window.currentDictionary.settings.sortByEquivalent;
|
||||
window.currentDictionary.settings.theme = 'default';
|
||||
delete window.currentDictionary.settings.isComplete;
|
||||
|
||||
migrated = true;
|
||||
} else if (window.currentDictionary.version !== MIGRATE_VERSION) {
|
||||
|
|
Loading…
Add table
Reference in a new issue