aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/listeners.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/listeners.js')
-rw-r--r--src/js/listeners.js12
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 });
});