diff options
author | Darius Jahandarie <djahandarie@gmail.com> | 2023-10-22 06:41:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-22 06:41:56 +0000 |
commit | 264bfe8c64e78016551f35df497eb6cd65f2965d (patch) | |
tree | 73ec5415972a7e6cdf0b213b0896344ad0a194b2 /ext/js/display | |
parent | aaa570a89ce4b285b42f26258de24b1bde4a76c3 (diff) | |
parent | 379fdcf2280939c72e1be4e4f38567149a108873 (diff) |
Merge pull request #278 from jbukl/offscreen-clipboard
Fix chromium clipboard access
Diffstat (limited to 'ext/js/display')
-rw-r--r-- | ext/js/display/search-display-controller.js | 2 |
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(); |