From b476b69bb43fbc28fb17ede1fc0e80956a19417e Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Fri, 7 Jun 2019 11:18:43 -0600 Subject: [PATCH] Update migrateDictionary to account for changes --- src/js/dictionaryManagement.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/dictionaryManagement.js b/src/js/dictionaryManagement.js index a6d1c91..1e8ddd2 100644 --- a/src/js/dictionaryManagement.js +++ b/src/js/dictionaryManagement.js @@ -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) {