summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-02-05 13:26:25 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-02-09 21:51:33 +0200
commit722a2a4bce08ae2e69d7abb1c5d09842bd29ebfa (patch)
tree95c24baa7292278f39214af944766c45a8b039bd
parent8a295c4bb06b88bb135a34a3f692ac631a713f50 (diff)
disable internal clipboard monitor in native popup
-rw-r--r--ext/bg/js/search.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index 34dac15b..feadefe4 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -49,11 +49,12 @@ class DisplaySearch extends Display {
try {
await this.initialize();
+ const {query='', mode=''} = DisplaySearch.parseQueryStringFromLocation(window.location.href);
+
if (this.search !== null) {
this.search.addEventListener('click', (e) => this.onSearch(e), false);
}
if (this.query !== null) {
- const {query='', mode=''} = DisplaySearch.parseQueryStringFromLocation(window.location.href);
document.documentElement.dataset.searchMode = mode;
this.query.addEventListener('input', () => this.onSearchInput(), false);
@@ -86,7 +87,7 @@ class DisplaySearch extends Display {
}
this.onSearchQueryUpdated(this.query.value, false);
}
- if (this.clipboardMonitorEnable !== null) {
+ if (this.clipboardMonitorEnable !== null && mode !== 'popup') {
if (this.options.general.enableClipboardMonitor === true) {
this.clipboardMonitorEnable.checked = true;
this.clipboardMonitor.start();