From f29abfc5115b06281c18467d7cf7b43bf133da82 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Sat, 25 Jan 2020 18:18:40 +0200 Subject: use correct optionsContext --- ext/bg/js/backend.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/bg') 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'); -- cgit v1.2.3