This commit is contained in:
jxxghp
2023-11-30 13:30:51 +08:00
parent 78e6fd4809
commit 1dff22aeab

View File

@@ -6,7 +6,7 @@ export async function getClipboardContent() {
else {
const input = document.createElement('input')
document.body.appendChild(input)
input.select()
input.focus()
document.execCommand('paste')
const content = input.value
document.body.removeChild(input)