JS code minor formatting

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
このコミットが含まれているのは:
AHOHNMYC 2022-05-19 07:15:17 +03:00 committed by GitHub
コミット 319bbd2f81
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更7行の追加2行の削除

ファイルの表示

@ -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