diff options
Diffstat (limited to 'src/js/listeners.js')
-rw-r--r-- | src/js/listeners.js | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/js/listeners.js b/src/js/listeners.js index 283bd4a2..34cdc6fb 100644 --- a/src/js/listeners.js +++ b/src/js/listeners.js @@ -387,24 +387,6 @@ class Listeners { controls.updateSetting.call(this.player, 'quality', null, event.detail.quality); }); - // Caption language change - on.call(this.player, this.player.media, 'languagechange', () => { - // Update UI - controls.updateSetting.call(this.player, 'captions'); - - // Save to storage - this.player.storage.set({ language: this.player.language }); - }); - - // Captions toggle - on.call(this.player, this.player.media, 'captionsenabled captionsdisabled', () => { - // Update UI - controls.updateSetting.call(this.player, 'captions'); - - // Save to storage - this.player.storage.set({ captions: this.player.captions.active }); - }); - // Proxy events to container // Bubble up key events for Edge on.call(this.player, this.player.media, this.player.config.events.concat([ @@ -477,7 +459,7 @@ class Listeners { ); // Captions toggle - bind(this.player.elements.buttons.captions, 'click', this.player.toggleCaptions); + bind(this.player.elements.buttons.captions, 'click', () => this.player.toggleCaptions()); // Fullscreen toggle bind( |