Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
davet2001 authored Jul 1, 2024
1 parent e3e106e commit c47426f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ha-hls-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class HaHLSPlayer extends LitElement {
let base_url: string;
try {
base_url = new URL(this.url).href;
} catch (error) {
} catch (err: any) {
base_url = new URL(this.url, window.location.href).href;
}
playlist_url = new URL(match[2], base_url).href;
Expand Down

0 comments on commit c47426f

Please sign in to comment.