diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-09 21:05:15 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-13 23:11:56 -0500 |
commit | 4922d3433dbd5472295ac7d6721e1ecac3707da1 (patch) | |
tree | b0aac188404ef13e58c65d3beb065d7515e44e61 | |
parent | 832405c74a72cbcf0ea914875b3badffa9bbf4c7 (diff) |
Move apiOptionsGet implementation into Backend
-rw-r--r-- | ext/bg/js/api.js | 2 | ||||
-rw-r--r-- | ext/bg/js/backend.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js index 5c9c7ab0..21a70ba7 100644 --- a/ext/bg/js/api.js +++ b/ext/bg/js/api.js @@ -18,7 +18,7 @@ function apiOptionsGet(optionsContext) { - return utilBackend().getOptions(optionsContext); + return utilBackend()._onApiOptionsGet({optionsContext}); } async function apiOptionsSet(changedOptions, optionsContext, source) { diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 72802ea1..65f9ab4c 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -187,7 +187,7 @@ class Backend { // Message handlers _onApiOptionsGet({optionsContext}) { - return apiOptionsGet(optionsContext); + return this.getOptions(optionsContext); } _onApiOptionsGetFull() { |