Use textContent for copy from codeblocks

873868389cf9c9f1a75596bad1bb40ddef55c740

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

1 files changed, +1 -1Showing whitespace changes
public/script.js+1 -1
@@ -1928,7 +1928,7 @@ export function addCopyToCodeBlocks(messageElement) {
19281928 e.stopPropagation();
19291929 });
19301930 copyButton.addEventListener('pointerup', async function () {
19311931 const text = codeBlocks.get(i).innerTexttextContent;
19321932 await copyText(text);
19331933 toastr.info(t`Copied!`, '', { timeOut: 2000 });
19341934 });