From 58557505ae3b07bb4907acdc77c6f0b308e286a4 Mon Sep 17 00:00:00 2001 From: Araxeus Date: Sun, 16 May 2021 22:39:11 +0300 Subject: [PATCH] show mute icon when volume=0 --- plugins/precise-volume/front.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/precise-volume/front.js b/plugins/precise-volume/front.js index bffc5588..360f5cbc 100644 --- a/plugins/precise-volume/front.js +++ b/plugins/precise-volume/front.js @@ -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