From 65458cf491fdef33379498a8fa90ae0ff8f09ae7 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Thu, 2 Oct 2025 18:18:29 +0800 Subject: [PATCH] chore: make lint happy --- client/ui/custom-elements/chat-video.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/ui/custom-elements/chat-video.ts b/client/ui/custom-elements/chat-video.ts index 073c18d..36049b9 100644 --- a/client/ui/custom-elements/chat-video.ts +++ b/client/ui/custom-elements/chat-video.ts @@ -6,11 +6,10 @@ customElements.define('chat-video', class extends HTMLElement { } connectedCallback() { this.style.display = 'block' - const e = new DOMParser().parseFromString(``, 'text/html').body.firstChild as Node + const e = new DOMParser().parseFromString(``, 'text/html').body.firstChild as HTMLVideoElement e.style.width = "100%" e.style.height = "100%" e.style.borderRadius = "var(--mdui-shape-corner-medium)" - e.alt = $(this).attr('alt') || "" e.src = $(this).attr('src') as string this.appendChild(e) }