refactor: use replaceChildren in subtitle options

This commit is contained in:
2026-06-21 01:12:06 +02:00
committed by Milas Holsting
parent 4835cf9835
commit 077499cf9e

View File

@@ -48,7 +48,7 @@ export const updateSubtitleOptions = (): void => {
) as HTMLSelectElement | null; ) as HTMLSelectElement | null;
if (!select) return; if (!select) return;
state.subtitles.tracks = subtitlesForMode(); state.subtitles.tracks = subtitlesForMode();
select.innerHTML = ""; select.replaceChildren();
const none = document.createElement("option"); const none = document.createElement("option");
none.value = "none"; none.value = "none";