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) }