aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r--ext/bg/js/api.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js
index 49a6c14f..095734fb 100644
--- a/ext/bg/js/api.js
+++ b/ext/bg/js/api.js
@@ -93,10 +93,6 @@ function apiGetEnvironmentInfo() {
return utilBackend()._onApiGetEnvironmentInfo();
}
-async function apiClipboardGet() {
- const clipboardPasteTarget = utilBackend().clipboardPasteTarget;
- clipboardPasteTarget.innerText = '';
- clipboardPasteTarget.focus();
- document.execCommand('paste');
- return clipboardPasteTarget.innerText;
+function apiClipboardGet() {
+ return utilBackend()._onApiClipboardGet();
}