disable internal clipboard monitor in native popup
This commit is contained in:
parent
8a295c4bb0
commit
722a2a4bce
@ -49,11 +49,12 @@ class DisplaySearch extends Display {
|
|||||||
try {
|
try {
|
||||||
await this.initialize();
|
await this.initialize();
|
||||||
|
|
||||||
|
const {query='', mode=''} = DisplaySearch.parseQueryStringFromLocation(window.location.href);
|
||||||
|
|
||||||
if (this.search !== null) {
|
if (this.search !== null) {
|
||||||
this.search.addEventListener('click', (e) => this.onSearch(e), false);
|
this.search.addEventListener('click', (e) => this.onSearch(e), false);
|
||||||
}
|
}
|
||||||
if (this.query !== null) {
|
if (this.query !== null) {
|
||||||
const {query='', mode=''} = DisplaySearch.parseQueryStringFromLocation(window.location.href);
|
|
||||||
document.documentElement.dataset.searchMode = mode;
|
document.documentElement.dataset.searchMode = mode;
|
||||||
this.query.addEventListener('input', () => this.onSearchInput(), false);
|
this.query.addEventListener('input', () => this.onSearchInput(), false);
|
||||||
|
|
||||||
@ -86,7 +87,7 @@ class DisplaySearch extends Display {
|
|||||||
}
|
}
|
||||||
this.onSearchQueryUpdated(this.query.value, false);
|
this.onSearchQueryUpdated(this.query.value, false);
|
||||||
}
|
}
|
||||||
if (this.clipboardMonitorEnable !== null) {
|
if (this.clipboardMonitorEnable !== null && mode !== 'popup') {
|
||||||
if (this.options.general.enableClipboardMonitor === true) {
|
if (this.options.general.enableClipboardMonitor === true) {
|
||||||
this.clipboardMonitorEnable.checked = true;
|
this.clipboardMonitorEnable.checked = true;
|
||||||
this.clipboardMonitor.start();
|
this.clipboardMonitor.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user