From 4922d3433dbd5472295ac7d6721e1ecac3707da1 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 9 Dec 2019 21:05:15 -0500 Subject: Move apiOptionsGet implementation into Backend --- ext/bg/js/api.js | 2 +- 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() { -- cgit v1.2.3