mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix eslint errors
This commit is contained in:
parent
018d8d3f83
commit
8a6f33fff8
18 changed files with 48 additions and 48 deletions
|
@ -13,7 +13,7 @@ export enum CardShape {
|
|||
Mixed = 'mixed',
|
||||
MixedSquare = 'mixedSquare',
|
||||
MixedBackdrop = 'mixedBackdrop',
|
||||
MixedPortrait = 'mixedPortrait',
|
||||
MixedPortrait = 'mixedPortrait'
|
||||
}
|
||||
|
||||
export function getSquareShape(enableOverflow = true) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import type { MediaSourceInfo } from '@jellyfin/sdk/lib/generated-client';
|
|||
* @param mediaSource The media source.
|
||||
* @returns _true_ if the media source is an HLS stream, _false_ otherwise.
|
||||
*/
|
||||
export function isHls(mediaSource: MediaSourceInfo|null|undefined): boolean {
|
||||
export function isHls(mediaSource: MediaSourceInfo | null | undefined): boolean {
|
||||
return mediaSource?.TranscodingSubProtocol?.toUpperCase() === 'HLS'
|
||||
|| mediaSource?.Container?.toUpperCase() === 'HLS';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue