Fix lint errors
This commit is contained in:
@@ -80,7 +80,7 @@ export function handleHlsJsMediaError(instance, reject) {
|
||||
let now = Date.now();
|
||||
|
||||
if (window.performance?.now) {
|
||||
now = performance.now(); // eslint-disable-line compat/compat
|
||||
now = performance.now();
|
||||
}
|
||||
|
||||
if (!recoverDecodingErrorDate || (now - recoverDecodingErrorDate) > 3000) {
|
||||
@@ -373,6 +373,7 @@ export function getBufferedRanges(instance, elem) {
|
||||
start = 0;
|
||||
}
|
||||
if (!isValidDuration(end)) {
|
||||
// eslint-disable-next-line sonarjs/no-dead-store
|
||||
end = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user