aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/api.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-09 21:59:18 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-13 23:11:56 -0500
commit11b300ab7670011c2a06e75f72eea4e9bf87cd97 (patch)
tree2ac61bf35dbf8fc40eb95eb97d0b06cbcf6a1f4f /ext/bg/js/api.js
parent2fef2bf5a87d142310ca79a75894098984ab1ffa (diff)
Move apiClipboardGet implementation into Backend
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();
}