Use window.getSelection instead of document.getSelection
This commit is contained in:
parent
2c5bf0ed6b
commit
f88d4b02e4
@ -209,7 +209,7 @@ class DisplaySearch extends Display {
|
||||
|
||||
onCopy() {
|
||||
// ignore copy from search page
|
||||
this.clipboardMonitor.setPreviousText(document.getSelection().toString().trim());
|
||||
this.clipboardMonitor.setPreviousText(window.getSelection().toString().trim());
|
||||
}
|
||||
|
||||
onExternalSearchUpdate({text}) {
|
||||
|
Loading…
Reference in New Issue
Block a user