aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/backend.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-09 21:11:10 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-13 23:11:56 -0500
commit8dff73679e909dab8f325cc9458cf5c40c9be485 (patch)
tree29c72223c13304d67467bb5e1e296f6209efe6a8 /ext/bg/js/backend.js
parent6a1cfbaad62bc60e8415821039e028432d64b549 (diff)
Move apiOptionsSave implementation into Backend
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r--ext/bg/js/backend.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 74cd2ab4..5753e16e 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -234,8 +234,10 @@ class Backend {
await this._optionsSave({source});
}
- _onApiOptionsSave({source}) {
- return apiOptionsSave(source);
+ async _onApiOptionsSave({source}) {
+ const options = await this.getFullOptions();
+ await optionsSave(options);
+ this.onOptionsUpdated(source);
}
_onApiKanjiFind({text, optionsContext}) {