aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/plyr.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 2b296181..5a9a1bd3 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -680,8 +680,7 @@ class Plyr {
set quality(input) {
const config = this.config.quality;
const options = this.options.quality;
- const duration = this.duration;
- const isPlaying = this.playing;
+ const { duration, playing } = this;
if (!options.length) {
return;
@@ -706,11 +705,11 @@ class Plyr {
// Set quality
this.media.quality = quality;
- // seek to duration before changing quality
+ // Seek to duration before changing quality
this.seek = duration;
- // continue
- if (isPlaying) {
+ // Continue
+ if (playing) {
this.play();
}
}