Skip to content

Commit

Permalink
Click to select result
Browse files Browse the repository at this point in the history
  • Loading branch information
ninegua committed Jun 19, 2021
1 parent 09a8768 commit ce146e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit ce146e5

Please sign in to comment.