Add error message copy button

This commit is contained in:
dwrz
2026-07-05 18:03:46 +00:00
parent d24013269a
commit 112d994113
2 changed files with 9 additions and 0 deletions

View File

@@ -407,6 +407,7 @@ export class Renderer {
const $msg =
this.$tplErrorMessage.content.cloneNode(true).firstElementChild;
$msg.querySelector('.message__content').textContent = message;
$msg.dataset.copyText = message;
this.$chat.insertBefore($msg, this.$chatLoading);
this.scrollToBottom();
}