aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/captions.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2017-12-20 15:14:05 +0000
committerSam Potts <sam@potts.es>2017-12-20 15:14:05 +0000
commit6864149989c6a5b1bb6e9199e1f8af062c64dcc4 (patch)
tree283649e596f5a81780fabe3603bb0be7d0d47485 /src/js/captions.js
parentaab53fa91fded2babdef8c3529a0ff1203f92f97 (diff)
downloadplyr-6864149989c6a5b1bb6e9199e1f8af062c64dcc4.tar.lz
plyr-6864149989c6a5b1bb6e9199e1f8af062c64dcc4.tar.xz
plyr-6864149989c6a5b1bb6e9199e1f8af062c64dcc4.zip
Converted to SASS/SCSS
Diffstat (limited to 'src/js/captions.js')
-rw-r--r--src/js/captions.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/js/captions.js b/src/js/captions.js
index 037de128..847ef7ff 100644
--- a/src/js/captions.js
+++ b/src/js/captions.js
@@ -109,7 +109,10 @@ const captions = {
}
// Only get accepted kinds
- return Array.from(this.media.textTracks || []).filter(track => ['captions', 'subtitles'].includes(track.kind));
+ return Array.from(this.media.textTracks || []).filter(track => [
+ 'captions',
+ 'subtitles',
+ ].includes(track.kind));
},
// Get the current track for the current language