mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
show mute icon when volume=0
This commit is contained in:
@ -136,7 +136,9 @@ function changeVolume(toIncrease, options) {
|
||||
// Save the new volume
|
||||
saveVolume(toPercent(videoStream.volume), options);
|
||||
// Slider value automatically rounds to multiples of 5
|
||||
slider.value = Math.max(options.savedVolume, 5);
|
||||
slider.value = options.savedVolume > 0 && options.savedVolume < 5 ?
|
||||
5 : options.savedVolume;
|
||||
|
||||
// Change tooltips to new value
|
||||
setTooltip(options.savedVolume);
|
||||
// Show volume slider
|
||||
|
||||
Reference in New Issue
Block a user