mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix lint errors
This commit is contained in:
parent
7d9acf30b6
commit
4730a30c3d
29 changed files with 53 additions and 23 deletions
|
@ -230,7 +230,8 @@ function supportsVc1(videoTestElement) {
|
|||
}
|
||||
|
||||
function supportsHdr10(options) {
|
||||
return options.supportsHdr10 ?? (false // eslint-disable-line sonarjs/no-redundant-boolean
|
||||
// eslint-disable-next-line no-constant-binary-expression, sonarjs/no-redundant-boolean
|
||||
return options.supportsHdr10 ?? (false
|
||||
|| browser.vidaa
|
||||
|| browser.tizen
|
||||
|| browser.web0s
|
||||
|
@ -253,7 +254,8 @@ function supportsHlg(options) {
|
|||
}
|
||||
|
||||
function supportsDolbyVision(options) {
|
||||
return options.supportsDolbyVision ?? (false // eslint-disable-line sonarjs/no-redundant-boolean
|
||||
// eslint-disable-next-line no-constant-binary-expression, sonarjs/no-redundant-boolean
|
||||
return options.supportsDolbyVision ?? (false
|
||||
|| browser.safari && ((browser.iOS && browser.iOSVersion >= 13) || browser.osx)
|
||||
);
|
||||
}
|
||||
|
@ -512,10 +514,8 @@ export default function (options) {
|
|||
}
|
||||
}
|
||||
|
||||
/* eslint-disable compat/compat */
|
||||
let maxVideoWidth = browser.xboxOne ? window.screen?.width : null;
|
||||
|
||||
/* eslint-enable compat/compat */
|
||||
if (options.maxVideoWidth) {
|
||||
maxVideoWidth = options.maxVideoWidth;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue