web/cobalt.js: fix copying text on click
Signed-off-by: jj <log@riseup.net>
This commit is contained in:
parent
5c11e57e00
commit
abd9f2eb87
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue