From 8825c481b5139ce41ad227da4d7e8725666aa072 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Sun, 3 Nov 2019 15:43:27 +0200 Subject: [PATCH] respect text selection option in query parser --- ext/bg/js/search-query-parser.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/bg/js/search-query-parser.js b/ext/bg/js/search-query-parser.js index 8c3159cd..dfab0d9a 100644 --- a/ext/bg/js/search-query-parser.js +++ b/ext/bg/js/search-query-parser.js @@ -32,7 +32,8 @@ class QueryParser { } onClick(e) { - this.onTermLookup(e, {disableScroll: true, selectText: true}); + const selectText = this.search.options.scanning.selectText; + this.onTermLookup(e, {disableScroll: true, selectText}); } onMouseEnter(e) { @@ -52,7 +53,8 @@ class QueryParser { return; } - this.onTermLookup(e, {disableScroll: true, selectText: true, disableHistory: true}); + const selectText = this.search.options.scanning.selectText; + this.onTermLookup(e, {disableScroll: true, disableHistory: true, selectText}); } onTermLookup(e, params) {