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";