summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-09 21:00:49 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-13 23:11:56 -0500
commit7addf5a2ddd345bceb7aa0ee492ad51c25019e1a (patch)
tree9a475fd77f03185089b21e8889e7711b1575d3ce /ext/bg/js
parent4177b6372696d9b424857fedd1be988cc7eb0095 (diff)
Add API calls for optionsGetFull and optionsSave
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/backend.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 32b6d4e9..72802ea1 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -190,10 +190,18 @@ class Backend {
return apiOptionsGet(optionsContext);
}
+ _onApiOptionsGetFull() {
+ return apiOptionsGetFull();
+ }
+
_onApiOptionsSet({changedOptions, optionsContext, source}) {
return apiOptionsSet(changedOptions, optionsContext, source);
}
+ _onApiOptionsSave({source}) {
+ return apiOptionsSave(source);
+ }
+
_onApiKanjiFind({text, optionsContext}) {
return apiKanjiFind(text, optionsContext);
}
@@ -261,7 +269,9 @@ class Backend {
Backend._messageHandlers = new Map([
['optionsGet', (self, ...args) => self._onApiOptionsGet(...args)],
+ ['optionsGetFull', (self, ...args) => self._onApiOptionsGetFull(...args)],
['optionsSet', (self, ...args) => self._onApiOptionsSet(...args)],
+ ['optionsSave', (self, ...args) => self._onApiOptionsSave(...args)],
['kanjiFind', (self, ...args) => self._onApiKanjiFind(...args)],
['termsFind', (self, ...args) => self._onApiTermsFind(...args)],
['textParse', (self, ...args) => self._onApiTextParse(...args)],