From c47426fe0c23b4162b35c170a1bd52cadbc38b3c Mon Sep 17 00:00:00 2001 From: Dave T <17680170+davet2001@users.noreply.github.com> Date: Tue, 2 Jul 2024 00:52:37 +0100 Subject: [PATCH] Address review comment --- src/components/ha-hls-player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ha-hls-player.ts b/src/components/ha-hls-player.ts index d81b54013599..63fda5898f55 100644 --- a/src/components/ha-hls-player.ts +++ b/src/components/ha-hls-player.ts @@ -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;