mirror of
https://github.com/vrana/adminer.git
synced 2026-02-24 15:41:21 +01:00
Copy hidden newlines to clipboard
This commit is contained in:
@@ -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
2
externals/jush
vendored
Submodule externals/jush updated: 1775a0dafa...c6618a3016
Reference in New Issue
Block a user