From 077499cf9e378f71eacb85b4aa72017bcf0d4e07 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 64c0265..c7c9736 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";