From 16521fec935845828b7e08baf1668657bb5a7cef Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 15 Oct 2019 20:23:25 -0400 Subject: Assign first popup on the search page as a depth of 1 --- ext/bg/js/search-frontend.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/bg/js') diff --git a/ext/bg/js/search-frontend.js b/ext/bg/js/search-frontend.js index f55f06e6..b21dac17 100644 --- a/ext/bg/js/search-frontend.js +++ b/ext/bg/js/search-frontend.js @@ -25,6 +25,8 @@ async function searchFrontendSetup() { const options = await apiOptionsGet(optionsContext); if (!options.scanning.enableOnSearchPage) { return; } + window.frontendInitializationData = {depth: 1, proxy: false}; + const scriptSrcs = [ '/fg/js/frontend-api-receiver.js', '/fg/js/popup.js', -- cgit v1.2.3