We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d675a2 commit 89d2e33Copy full SHA for 89d2e33
send.ts
@@ -36,12 +36,13 @@
36
if (!document.activeElement) {
37
throw new Error("`document.activeElement` is null");
38
}
39
- const activeElement = document.activeElement.appendChild(pasteTarget).parentNode;
+ const activeElement =
40
+ document.activeElement.appendChild(pasteTarget).parentNode;
41
pasteTarget.focus();
42
document.execCommand("Paste");
43
const paste = pasteTarget.innerText;
44
if (!activeElement) {
- throw new Error("`activeElement` is null")
45
+ throw new Error("`activeElement` is null");
46
47
activeElement.removeChild(pasteTarget);
48
return paste;
0 commit comments