diff options
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 54734fde..86ad0ba0 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -474,7 +474,7 @@ class Plyr { */ increaseVolume(step) { const volume = this.media.muted ? 0 : this.volume; - this.volume = volume + utils.is.number(step) ? step : 1; + this.volume = volume + (utils.is.number(step) ? step : 1); return this; } @@ -484,7 +484,7 @@ class Plyr { */ decreaseVolume(step) { const volume = this.media.muted ? 0 : this.volume; - this.volume = volume - utils.is.number(step) ? step : 1; + this.volume = volume - (utils.is.number(step) ? step : 1); return this; } |