refactor: use replaceChildren in subtitle options

This commit is contained in:
2026-06-21 01:12:06 +02:00
parent c6427bf866
commit 4151525acf

View File

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