diff options
Diffstat (limited to 'src/js/captions.js')
-rw-r--r-- | src/js/captions.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/captions.js b/src/js/captions.js index cf437bde..ebb678f8 100644 --- a/src/js/captions.js +++ b/src/js/captions.js @@ -127,6 +127,7 @@ const captions = { .filter(track => !meta.get(track)) .forEach(track => { this.debug.log('Track added', track); + // Attempt to store if the original dom element was "default" meta.set(track, { default: track.mode === 'showing', @@ -137,6 +138,7 @@ const captions = { // isn't downloaded at once, only 'showing' tracks should be reassigned // eslint-disable-next-line no-param-reassign if (track.mode === 'showing') { + // eslint-disable-next-line no-param-reassign track.mode = 'hidden'; } |