diff --git a/src/lib/VolumeSlider.ts b/src/lib/VolumeSlider.ts index 91656d8..a281972 100644 --- a/src/lib/VolumeSlider.ts +++ b/src/lib/VolumeSlider.ts @@ -65,6 +65,7 @@ export function setVolumeSlider( if (id === null) return; // throw new Error("ID not found"); const volumeContainer = getVolumeContainer(); + if (!volumeContainer) return; volumeContainer.setAttribute(INJECTION_MARKER, ""); // ? for injections // const slider = document.createElement("input") const slider = render(`