aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/plyr.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 9e00e836..374251e6 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -561,8 +561,7 @@ class Plyr {
* @param {boolean} step - How much to decrease by (between 0 and 1)
*/
decreaseVolume(step) {
- const volume = this.media.muted ? 0 : this.volume;
- this.volume = volume - (is.number(step) ? step : 0);
+ this.increaseVolume(-step);
}
/**