diff --git a/src/index.js b/src/index.js index 5f731a8..bdea4e5 100644 --- a/src/index.js +++ b/src/index.js @@ -193,6 +193,10 @@ function do_send(message) { pre.innerText = text; }; pre.id = "status"; + pre.onclick = () => { + pre.select(); + document.execCommand("copy"); + }; result.appendChild(pre); await send_message(message, update_status, sleep); };