Use textContent for copy from codeblocks

873868389cf9c9f1a75596bad1bb40ddef55c740

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -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 });