summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-01-25 18:18:40 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-02-09 21:51:33 +0200
commitf29abfc5115b06281c18467d7cf7b43bf133da82 (patch)
treea802e5627650ea8fd24b16096267506ab443594d
parent679e42c21ccc3ab778f4b26406b353769e171878 (diff)
use correct optionsContext
-rw-r--r--ext/bg/js/backend.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 2fb7711f..3cb9ce1d 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -585,8 +585,7 @@ class Backend {
async _onCommandSearch(params) {
const {mode, query} = params || {};
- const optionsContext = {depth: 0};
- const options = await this.getOptions(optionsContext);
+ const options = await this.getOptions(this.optionsContext);
const {popupWidth, popupHeight} = options.general;
const baseUrl = chrome.runtime.getURL('/bg/search.html');