diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-07-04 13:46:03 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-04 13:46:03 +0900 |
commit | 285322a96cc61e4c3cc1f3323b5cd7dc9b36e621 (patch) | |
tree | 6d76970298daa9f5b49fe21fc907e4c536065e4e /src | |
parent | e0fd69b047677850f56619b0176455d24e9beb49 (diff) | |
parent | 3fdc3e999ef5aa7c6de67b5cc50181dc51feb297 (diff) |
Merge pull request #1204 from ueokande/fix-keyword-paste
Read clipboard from textarea element's value
Diffstat (limited to 'src')
-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) { |