chore: make lint happy
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user