mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:27 -04:00
JS. Trailing spaces removed
This commit is contained in:
parent
f2f3f045e5
commit
d3ab4a5145
5 changed files with 13 additions and 13 deletions
|
@ -54,12 +54,12 @@ var player = videojs('player', options);
|
|||
|
||||
player.on('error', function () {
|
||||
if (video_data.params.quality === 'dash') return;
|
||||
|
||||
|
||||
var localNotDisabled = (
|
||||
!player.currentSrc().includes('local=true') && !video_data.local_disabled
|
||||
);
|
||||
var reloadMakesSense = (
|
||||
player.error().code === MediaError.MEDIA_ERR_NETWORK ||
|
||||
player.error().code === MediaError.MEDIA_ERR_NETWORK ||
|
||||
player.error().code === MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED
|
||||
);
|
||||
|
||||
|
@ -465,7 +465,7 @@ function toggle_play() { player.paused() ? play() : pause(); }
|
|||
|
||||
const toggle_captions = (function () {
|
||||
let toggledTrack = null;
|
||||
|
||||
|
||||
function bindChange(onOrOff) {
|
||||
player.textTracks()[onOrOff]('change', function (e) {
|
||||
toggledTrack = null;
|
||||
|
@ -481,7 +481,7 @@ const toggle_captions = (function () {
|
|||
bindChange('on');
|
||||
}, 0);
|
||||
}
|
||||
|
||||
|
||||
bindChange('on');
|
||||
return function () {
|
||||
if (toggledTrack !== null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue