diff options
author | Sam Potts <me@sampotts.me> | 2017-11-09 19:40:45 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2017-11-09 19:40:45 +1100 |
commit | f878581c8fe8c3e525722762553cf085e67d990f (patch) | |
tree | 600a9b488be0017740e31b089fad96130fddc8a4 /src/js/listeners.js | |
parent | 86a5724bdb84a1dc9e503f5907ad80caf395bf0a (diff) | |
download | plyr-f878581c8fe8c3e525722762553cf085e67d990f.tar.lz plyr-f878581c8fe8c3e525722762553cf085e67d990f.tar.xz plyr-f878581c8fe8c3e525722762553cf085e67d990f.zip |
UI bugs
Diffstat (limited to 'src/js/listeners.js')
-rw-r--r-- | src/js/listeners.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/js/listeners.js b/src/js/listeners.js index 31135a38..00f4c9b8 100644 --- a/src/js/listeners.js +++ b/src/js/listeners.js @@ -300,7 +300,7 @@ const listeners = { // Update UI controls.updateSetting.call(this, 'speed'); - // Save speed to localStorage + // Save to storage storage.set.call(this, { speed: this.speed }); }); @@ -309,20 +309,20 @@ const listeners = { // Update UI controls.updateSetting.call(this, 'quality'); - // Save speed to localStorage + // Save to storage storage.set.call(this, { quality: this.quality }); }); // Caption language change utils.on(this.media, 'captionchange', () => { - // Save speed to localStorage + // Save to storage storage.set.call(this, { language: this.language }); }); // Volume change utils.on(this.media, 'volumechange', () => { - // Save speed to localStorage - storage.set.call(this, { volume: this.volume }); + // Save to storage + storage.set.call(this, { volume: this.volume, muted: this.muted }); }); // Captions toggle @@ -330,7 +330,7 @@ const listeners = { // Update UI controls.updateSetting.call(this, 'captions'); - // Save speed to localStorage + // Save to storage storage.set.call(this, { captions: this.captions.enabled }); }); |