From 4151525acf65f5bd8f3e049683cef94e5593f739 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sun, 21 Jun 2026 01:12:06 +0200 Subject: [PATCH] refactor: use replaceChildren in subtitle options --- static/player/subtitles/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/player/subtitles/index.ts b/static/player/subtitles/index.ts index 64c02653..c7c97365 100644 --- a/static/player/subtitles/index.ts +++ b/static/player/subtitles/index.ts @@ -48,7 +48,7 @@ export const updateSubtitleOptions = (): void => { ) as HTMLSelectElement | null; if (!select) return; state.subtitles.tracks = subtitlesForMode(); - select.innerHTML = ""; + select.replaceChildren(); const none = document.createElement("option"); none.value = "none";