diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-12-13 11:29:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-13 11:29:32 -0500 |
commit | 5d2edda7534360def79921eb9d38ef72b4f6da04 (patch) | |
tree | da4c6712e0900d1850350817b152c47c14d227df /ext/bg/js/settings | |
parent | 48b8041800cc6a291f1addff59b7380434f89a87 (diff) |
Fix storage stats update error during dictionary deletion (#1106)
Diffstat (limited to 'ext/bg/js/settings')
-rw-r--r-- | ext/bg/js/settings/dictionary-controller.js | 2 | ||||
-rw-r--r-- | ext/bg/js/settings/dictionary-import-controller.js | 2 | ||||
-rw-r--r-- | ext/bg/js/settings/main.js | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/settings/dictionary-controller.js b/ext/bg/js/settings/dictionary-controller.js index d2ff831f..ba28ba1c 100644 --- a/ext/bg/js/settings/dictionary-controller.js +++ b/ext/bg/js/settings/dictionary-controller.js @@ -184,7 +184,7 @@ class DictionaryEntry { } class DictionaryController { - constructor(settingsController, modalController, storageController, statusFooter=null) { + constructor(settingsController, modalController, storageController, statusFooter) { this._settingsController = settingsController; this._modalController = modalController; this._storageController = storageController; diff --git a/ext/bg/js/settings/dictionary-import-controller.js b/ext/bg/js/settings/dictionary-import-controller.js index 1c306c78..15632d62 100644 --- a/ext/bg/js/settings/dictionary-import-controller.js +++ b/ext/bg/js/settings/dictionary-import-controller.js @@ -23,7 +23,7 @@ */ class DictionaryImportController { - constructor(settingsController, modalController, storageController, statusFooter=null) { + constructor(settingsController, modalController, storageController, statusFooter) { this._settingsController = settingsController; this._modalController = modalController; this._storageController = storageController; diff --git a/ext/bg/js/settings/main.js b/ext/bg/js/settings/main.js index 635549f8..09df19e4 100644 --- a/ext/bg/js/settings/main.js +++ b/ext/bg/js/settings/main.js @@ -83,10 +83,10 @@ async function setupEnvironmentInfo() { const profileController = new ProfileController(settingsController, modalController); profileController.prepare(); - const dictionaryController = new DictionaryController(settingsController, modalController, storageController); + const dictionaryController = new DictionaryController(settingsController, modalController, storageController, null); dictionaryController.prepare(); - const dictionaryImportController = new DictionaryImportController(settingsController, modalController, storageController); + const dictionaryImportController = new DictionaryImportController(settingsController, modalController, storageController, null); dictionaryImportController.prepare(); const ankiController = new AnkiController(settingsController); |