Use window.getSelection instead of document.getSelection

This commit is contained in:
toasted-nutbread 2020-04-11 15:56:08 -04:00
parent 2c5bf0ed6b
commit f88d4b02e4

View File

@ -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}) {