Skip to content

Commit

Permalink
null check before set volume slider attr
Browse files Browse the repository at this point in the history
  • Loading branch information
ynshung committed Apr 7, 2024
1 parent 3a8a9c8 commit a3f74b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/VolumeSlider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(`
Expand Down

0 comments on commit a3f74b6

Please sign in to comment.