Copy hidden newlines to clipboard

This commit is contained in:
Jakub Vrana
2025-09-05 20:29:56 +02:00
parent 4ad7eb0b70
commit 5c5f7d17fe
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ function messagesPrint(parent) {
}
for (const el of qsa('.copy', parent)) {
el.onclick = () => {
navigator.clipboard.writeText(qs('code', el.parentElement).innerText).then(el.textContent = '✓');
navigator.clipboard.writeText(qs('code', el.parentElement).innerText).then(() => el.textContent = '✓');
setTimeout(() => el.textContent = '🗐', 1000);
return false;
};

2
externals/jush vendored