summaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-15 20:23:25 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-15 20:23:25 -0400
commit16521fec935845828b7e08baf1668657bb5a7cef (patch)
tree6c965bf0e8962684f08e89f0c87fe595a6727bb2 /ext/bg
parent099909287f23bbc9e2deee2e4cd8cf9b17c88618 (diff)
Assign first popup on the search page as a depth of 1
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/search-frontend.js2
1 files changed, 2 insertions, 0 deletions
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',