diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-07-04 13:09:20 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-07-04 13:09:20 +0900 |
commit | 3fdc3e999ef5aa7c6de67b5cc50181dc51feb297 (patch) | |
tree | fda9a42a5eb5d3c7548dc2eb71c9d4ef7c46f5af /src/content/repositories | |
parent | 0c81a3095ccfc19f0afb40b54caf09debf0336cf (diff) |
Read clipboard from textarea element's value
Diffstat (limited to 'src/content/repositories')
-rw-r--r-- | src/content/repositories/ClipboardRepository.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/repositories/ClipboardRepository.ts b/src/content/repositories/ClipboardRepository.ts index 20e7367..7459341 100644 --- a/src/content/repositories/ClipboardRepository.ts +++ b/src/content/repositories/ClipboardRepository.ts @@ -15,7 +15,7 @@ export class ClipboardRepositoryImpl { textarea.focus(); const ok = window.document.execCommand("paste"); - const value = textarea.textContent!; + const value = textarea.value; textarea.remove(); if (!ok) { |