Use textContent for copy from codeblocks
| @@ -1928,7 +1928,7 @@ export function addCopyToCodeBlocks(messageElement) { | |||
| 1928 | e.stopPropagation(); | 1928 | e.stopPropagation(); |
| 1929 | }); | 1929 | }); |
| 1930 | copyButton.addEventListener('pointerup', async function () { | 1930 | copyButton.addEventListener('pointerup', async function () { |
| 1931 | const text = codeBlocks.get(i).innerText; | 1931 | const text = codeBlocks.get(i).textContent; |
| 1932 | await copyText(text); | 1932 | await copyText(text); |
| 1933 | toastr.info(t`Copied!`, '', { timeOut: 2000 }); | 1933 | toastr.info(t`Copied!`, '', { timeOut: 2000 }); |
| 1934 | }); | 1934 | }); |