From 3fdc3e999ef5aa7c6de67b5cc50181dc51feb297 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 4 Jul 2021 13:09:20 +0900 Subject: Read clipboard from textarea element's value --- src/content/repositories/ClipboardRepository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3