mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-12 20:25:06 +01:00
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) {
|
if (data) {
|
||||||
navigator.clipboard.writeText(data)
|
navigator.clipboard.writeText(data)
|
||||||
} else {
|
} else {
|
||||||
navigator.clipboard.writeText(e.innerText)
|
navigator.clipboard.writeText(target.textContent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue