This commit is contained in:
jxxghp
2023-11-30 13:30:51 +08:00
parent 78e6fd4809
commit 1dff22aeab
+1 -1
View File
@@ -6,7 +6,7 @@ export async function getClipboardContent() {
else { else {
const input = document.createElement('input') const input = document.createElement('input')
document.body.appendChild(input) document.body.appendChild(input)
input.select() input.focus()
document.execCommand('paste') document.execCommand('paste')
const content = input.value const content = input.value
document.body.removeChild(input) document.body.removeChild(input)