dont require user-audio-percentage

This commit is contained in:
uwaa 2025-01-27 04:18:22 +00:00
parent 028b513956
commit 6c5def32ce

View file

@ -77,7 +77,9 @@
volumeSet(Math.min(1, Math.max(0, audio.volume + number))); volumeSet(Math.min(1, Math.max(0, audio.volume + number)));
} }
function updateVolumeLabel() { function updateVolumeLabel() {
document.getElementById("user-audio-percentage").innerHTML = Math.round(audio.volume * 100) + "%"; let txtElm = document.getElementById("user-audio-percentage");
if (txtElm)
txtElm.innerHTML = Math.round(audio.volume * 100) + "%";
} }
//Registers a mutation observer for an element. Upon triggering and the callback //Registers a mutation observer for an element. Upon triggering and the callback