1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

manual changes for no-var eslint rule

This commit is contained in:
dkanada 2020-10-08 00:47:23 +09:00
parent 3374114a37
commit 237e8ddc4c
8 changed files with 13 additions and 12 deletions

View file

@ -149,7 +149,7 @@ import events from 'events';
} else {
// update video player position when media is ready to be sought
const events = ['durationchange', 'loadeddata', 'play', 'loadedmetadata'];
var onMediaChange = function(e) {
const onMediaChange = function(e) {
if (element.currentTime === 0 && element.duration >= seconds) {
// seek only when video position is exactly zero,
// as this is true only if video hasn't started yet or
@ -322,9 +322,8 @@ import events from 'events';
break;
case Hls.ErrorTypes.MEDIA_ERROR:
console.debug('fatal media error encountered, try to recover');
var currentReject = reject;
handleHlsJsMediaError(instance, reject);
reject = null;
handleHlsJsMediaError(instance, currentReject);
break;
default: