summaryrefslogtreecommitdiff
path: root/ext/bg/js/api.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/api.js
parent6a1cfbaad62bc60e8415821039e028432d64b549 (diff)
Move apiOptionsSave implementation into Backend
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r--ext/bg/js/api.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js
index 4c55c6e3..3e821333 100644
--- a/ext/bg/js/api.js
+++ b/ext/bg/js/api.js
@@ -29,11 +29,8 @@ function apiOptionsGetFull() {
return utilBackend()._onApiOptionsGetFull();
}
-async function apiOptionsSave(source) {
- const backend = utilBackend();
- const options = await apiOptionsGetFull();
- await optionsSave(options);
- backend.onOptionsUpdated(source);
+function apiOptionsSave(source) {
+ return utilBackend()._onApiOptionsSave({source});
}
async function apiTermsFind(text, details, optionsContext) {