forked from mirrors/akkoma-fe
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)));
|
||||
}
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue