mirror of
https://gitea.invidious.io/iv-org/invidious
synced 2024-12-23 07:26:39 +01:00
JS code minor formatting
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
1097648f0a
commit
319bbd2f81
@ -54,8 +54,13 @@ 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_SRC_NOT_SUPPORTED;
|
||||
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_SRC_NOT_SUPPORTED
|
||||
);
|
||||
|
||||
if (localNotDisabled) {
|
||||
// add local=true to all current sources
|
||||
|
Loading…
Reference in New Issue
Block a user