From 9a39d0a7e2896edd4a6deebad00b8550cfffc15b Mon Sep 17 00:00:00 2001 From: jbukl Date: Fri, 20 Oct 2023 02:37:47 -0400 Subject: fix: chromium clipboard access on chromium, backend calls to clipboardGet are forwarded to an offscreen script --- ext/js/display/search-display-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/js/display') 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(); -- cgit v1.2.3