diff options
author | Sam Potts <sam@potts.es> | 2018-06-17 01:30:24 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-06-17 01:30:24 +1000 |
commit | 599883e684cf72a631ea366d0cb821fcb1c3d013 (patch) | |
tree | 90075d3343777a67dc78fcec4c295b140961788e /src | |
parent | f1b4db4f3665ea824ad75d7b68df1efc9f1a0524 (diff) | |
download | plyr-599883e684cf72a631ea366d0cb821fcb1c3d013.tar.lz plyr-599883e684cf72a631ea366d0cb821fcb1c3d013.tar.xz plyr-599883e684cf72a631ea366d0cb821fcb1c3d013.zip |
Formatting fix
Diffstat (limited to 'src')
-rw-r--r-- | src/js/fullscreen.js | 4 | ||||
-rw-r--r-- | src/js/plyr.js | 44 |
2 files changed, 24 insertions, 24 deletions
diff --git a/src/js/fullscreen.js b/src/js/fullscreen.js index d9cba17f..7091fde1 100644 --- a/src/js/fullscreen.js +++ b/src/js/fullscreen.js @@ -68,8 +68,8 @@ class Fullscreen { document, this.prefix === 'ms' ? 'MSFullscreenChange' : `${this.prefix}fullscreenchange`, () => { - // TODO: Filter for target?? - onChange.call(this); + // TODO: Filter for target?? + onChange.call(this); }, ); diff --git a/src/js/plyr.js b/src/js/plyr.js index 93fccbfa..d4b63874 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -828,7 +828,7 @@ class Plyr { */ toggleCaptions(input) { captions.toggle.call(this, input, false); - } + } /** * Set the caption track by index @@ -1032,35 +1032,35 @@ class Plyr { // Provider specific stuff if (this.isHTML5) { - // Clear timeout - clearTimeout(this.timers.loading); + // Clear timeout + clearTimeout(this.timers.loading); - // Restore native video controls - ui.toggleNativeControls.call(this, true); + // Restore native video controls + ui.toggleNativeControls.call(this, true); - // Clean up - done(); + // Clean up + done(); } else if (this.isYouTube) { - // Clear timers - clearInterval(this.timers.buffering); - clearInterval(this.timers.playing); + // Clear timers + clearInterval(this.timers.buffering); + clearInterval(this.timers.playing); - // Destroy YouTube API + // Destroy YouTube API if (this.embed !== null && is.function(this.embed.destroy)) { - this.embed.destroy(); - } + this.embed.destroy(); + } - // Clean up - done(); + // Clean up + done(); } else if (this.isVimeo) { - // Destroy Vimeo API - // then clean up (wait, to prevent postmessage errors) - if (this.embed !== null) { - this.embed.unload().then(done); - } + // Destroy Vimeo API + // then clean up (wait, to prevent postmessage errors) + if (this.embed !== null) { + this.embed.unload().then(done); + } - // Vimeo does not always return - setTimeout(done, 200); + // Vimeo does not always return + setTimeout(done, 200); } } |