aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/search-display-controller.js
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-10-22 06:41:56 +0000
committerGitHub <noreply@github.com>2023-10-22 06:41:56 +0000
commit264bfe8c64e78016551f35df497eb6cd65f2965d (patch)
tree73ec5415972a7e6cdf0b213b0896344ad0a194b2 /ext/js/display/search-display-controller.js
parentaaa570a89ce4b285b42f26258de24b1bde4a76c3 (diff)
parent379fdcf2280939c72e1be4e4f38567149a108873 (diff)
Merge pull request #278 from jbukl/offscreen-clipboard
Fix chromium clipboard access
Diffstat (limited to 'ext/js/display/search-display-controller.js')
-rw-r--r--ext/js/display/search-display-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js
index 25d9d6c2..5a271e05 100644
--- a/ext/js/display/search-display-controller.js
+++ b/ext/js/display/search-display-controller.js
@@ -44,7 +44,7 @@ class SearchDisplayController {
this._clipboardMonitor = new ClipboardMonitor({
japaneseUtil,
clipboardReader: {
- getText: async () => (await yomichan.api.clipboardGet())
+ getText: yomichan.api.clipboardGet.bind(yomichan.api)
}
});
this._messageHandlers = new Map();