From abd9f2eb8784ee5dea2f3e7c1adf30c75e586fcf Mon Sep 17 00:00:00 2001 From: jj Date: Sat, 25 May 2024 15:12:18 +0200 Subject: [PATCH] web/cobalt.js: fix copying text on click Signed-off-by: jj --- src/front/cobalt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/front/cobalt.js b/src/front/cobalt.js index 1efe64be..0c89dec2 100644 --- a/src/front/cobalt.js +++ b/src/front/cobalt.js @@ -128,7 +128,7 @@ const copy = (id, data) => { if (data) { navigator.clipboard.writeText(data) } else { - navigator.clipboard.writeText(e.innerText) + navigator.clipboard.writeText(target.textContent) } }