aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-10-24 23:00:54 +1100
committerSam Potts <sam@potts.es>2018-10-24 23:00:54 +1100
commit67b7262764464d8dbbb7ad978fe0749bce7553c6 (patch)
treebdec96b2e4d5f8a6d5327f4b8ef636b15a96f159 /src
parent88528ef9799569c0ce31828072cfd3e82d7013b0 (diff)
downloadplyr-67b7262764464d8dbbb7ad978fe0749bce7553c6.tar.lz
plyr-67b7262764464d8dbbb7ad978fe0749bce7553c6.tar.xz
plyr-67b7262764464d8dbbb7ad978fe0749bce7553c6.zip
Revert PR #1211
Diffstat (limited to 'src')
-rw-r--r--src/js/plyr.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index dfde03b1..c04d6fa9 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -683,7 +683,6 @@ class Plyr {
set quality(input) {
const config = this.config.quality;
const options = this.options.quality;
- const { duration, playing } = this;
if (!options.length) {
return;
@@ -715,15 +714,7 @@ class Plyr {
// Save to storage
if (updateStorage) {
- this.storage.set({ quality: quality });
- }
-
- // Seek to duration before changing quality
- this.seek = duration;
-
- // Continue
- if (playing) {
- this.play();
+ this.storage.set({ quality });
}
}