mirror of
https://git.rape.pet/ulith/amputoma-fe.git
synced 2025-01-31 08:33:22 +01:00
dont require user-audio-percentage
This commit is contained in:
parent
028b513956
commit
6c5def32ce
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue