Convert live to a Lit element.

This commit is contained in:
Dermot Duffy
2021-09-20 21:33:37 -07:00
parent 6498ae22cd
commit 8d639fb6fe
6 changed files with 221 additions and 128 deletions
+2 -2
View File
@@ -152,10 +152,10 @@ export class FrigateCardViewer extends LitElement {
}
protected render(): TemplateResult | void {
return html`${until(this._renderViewer(), renderProgressIndicator())}`;
return html`${until(this._render(), renderProgressIndicator())}`;
}
protected async _renderViewer(): Promise<TemplateResult> {
protected async _render(): Promise<TemplateResult> {
let autoplay = true;
let parent: BrowseMediaSource | null = null;