aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/pages/settings/main.js')
-rw-r--r--ext/js/pages/settings/main.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/js/pages/settings/main.js b/ext/js/pages/settings/main.js
index 9785ee0e..3ccf2dd6 100644
--- a/ext/js/pages/settings/main.js
+++ b/ext/js/pages/settings/main.js
@@ -25,6 +25,7 @@
* GenericSettingController
* ModalController
* PermissionsToggleController
+ * PersistentStorageController
* PopupPreviewController
* ProfileController
* ScanInputsController
@@ -63,7 +64,10 @@ async function setupEnvironmentInfo() {
const settingsController = new SettingsController(optionsFull.profileCurrent);
settingsController.prepare();
- const storageController = new StorageController();
+ const persistentStorageController = new PersistentStorageController();
+ persistentStorageController.prepare();
+
+ const storageController = new StorageController(persistentStorageController);
storageController.prepare();
const genericSettingController = new GenericSettingController(settingsController);
@@ -81,10 +85,10 @@ async function setupEnvironmentInfo() {
const profileController = new ProfileController(settingsController, modalController);
profileController.prepare();
- const dictionaryController = new DictionaryController(settingsController, modalController, storageController, null);
+ const dictionaryController = new DictionaryController(settingsController, modalController, null);
dictionaryController.prepare();
- const dictionaryImportController = new DictionaryImportController(settingsController, modalController, storageController, null);
+ const dictionaryImportController = new DictionaryImportController(settingsController, modalController, null);
dictionaryImportController.prepare();
const ankiController = new AnkiController(settingsController);