chore: make lint happy

This commit is contained in:
CrescentLeaf
2025-10-02 18:18:29 +08:00
parent c23fdbf310
commit 65458cf491

View File

@@ -6,11 +6,10 @@ customElements.define('chat-video', class extends HTMLElement {
}
connectedCallback() {
this.style.display = 'block'
const e = new DOMParser().parseFromString(`<video controls>視頻無法播放</video>`, 'text/html').body.firstChild as Node
const e = new DOMParser().parseFromString(`<video controls>視頻無法播放</video>`, '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)
}