mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-07 03:14:00 +00:00
Use ESM version of hls.js (#16655)
This commit is contained in:
@@ -109,8 +109,7 @@ class HaHLSPlayer extends LitElement {
|
||||
private async _startHls(): Promise<void> {
|
||||
const masterPlaylistPromise = fetch(this.url);
|
||||
|
||||
const Hls: typeof HlsType = (await import("hls.js/dist/hls.light.min"))
|
||||
.default;
|
||||
const Hls: typeof HlsType = (await import("hls.js/dist/hls.light")).default;
|
||||
|
||||
if (!this.isConnected) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user