Skip to content

Commit

Permalink
fix: getTemplateHTML should return all html (SSR)
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Nov 13, 2024
1 parent 0eecec1 commit 48c396f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/media-chrome-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function getTemplateHTML(_attrs: Record<string, string>) {
line-height: 1.4;
}
</style>
${this.getSlotTemplateHTML(_attrs)}
`;
}

Expand Down Expand Up @@ -128,7 +129,6 @@ class MediaChromeDialog extends globalThis.HTMLElement {

this.shadowRoot.innerHTML = /*html*/ `
${(this.constructor as typeof MediaChromeDialog).getTemplateHTML(attrs)}
${(this.constructor as typeof MediaChromeDialog).getSlotTemplateHTML(attrs)}
`;
}
}
Expand Down

0 comments on commit 48c396f

Please sign in to comment.