From aa650068b19a8ad59cfe7efd5de1ef512664ebfb Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sun, 24 May 2026 22:44:53 +0200 Subject: [PATCH] fix: avoid unused expressions in overlay --- static/player/episodes/ui.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/player/episodes/ui.ts b/static/player/episodes/ui.ts index 849caad..62921f2 100644 --- a/static/player/episodes/ui.ts +++ b/static/player/episodes/ui.ts @@ -20,7 +20,8 @@ export const isAutoplayEnabled = (): boolean => export const updateOverlay = (episode: string, title: string): void => { if (!state.videoOverlay) return; const p = state.videoOverlay.querySelector('p'); - p && (p.textContent = title ? `Episode ${episode}, ${title}` : `Episode ${episode}`); + if (!p) return; + p.textContent = title ? `Episode ${episode}, ${title}` : `Episode ${episode}`; }; // helper: get all episode elements from grid and list