aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-11 15:56:08 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-11 15:56:08 -0400
commitf88d4b02e4457e321a0bce1a4b67d0c355f7e1a3 (patch)
tree5c298219d5dcd0278e1a2a26e8eac714c0e94ef2 /ext/bg/js/search.js
parent2c5bf0ed6b2345fb8aa302a38f73cd452df8c254 (diff)
Use window.getSelection instead of document.getSelection
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r--ext/bg/js/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index 9250fdde..5d04c6e4 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -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}) {