diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-09-04 17:54:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 17:54:34 -0400 |
commit | d8f488e28c7d2eb0cf84611ea2ea9c26ed57cb1f (patch) | |
tree | f7f121c9bfa384375d84a5fe4014f782d8421ea2 /ext/bg/js/settings/main.js | |
parent | 8cd5a2f75f192417eee49f221029d50d77aef82d (diff) |
Settings dictionary import refactor (#759)
* Fix .purge not re-opening the database after deletion failure
* Create DictionaryImportController
* Remove backend dictionary import
Diffstat (limited to 'ext/bg/js/settings/main.js')
-rw-r--r-- | ext/bg/js/settings/main.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/bg/js/settings/main.js b/ext/bg/js/settings/main.js index db371d37..b29744ac 100644 --- a/ext/bg/js/settings/main.js +++ b/ext/bg/js/settings/main.js @@ -21,6 +21,7 @@ * AudioController * ClipboardPopupsController * DictionaryController + * DictionaryImportController * GenericSettingController * PopupPreviewController * ProfileController @@ -94,9 +95,12 @@ async function setupEnvironmentInfo() { const profileController = new ProfileController(settingsController); profileController.prepare(); - const dictionaryController = new DictionaryController(settingsController, storageController); + const dictionaryController = new DictionaryController(settingsController); dictionaryController.prepare(); + const dictionaryImportController = new DictionaryImportController(settingsController, storageController); + dictionaryImportController.prepare(); + const ankiController = new AnkiController(settingsController); ankiController.prepare(); |