mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +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
|
// Save the new volume
|
||||||
saveVolume(toPercent(videoStream.volume), options);
|
saveVolume(toPercent(videoStream.volume), options);
|
||||||
// Slider value automatically rounds to multiples of 5
|
// 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
|
// Change tooltips to new value
|
||||||
setTooltip(options.savedVolume);
|
setTooltip(options.savedVolume);
|
||||||
// Show volume slider
|
// Show volume slider
|
||||||
|
|||||||
Reference in New Issue
Block a user