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

Fix unnecessary optional chaining

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
gnattu 2024-09-22 13:16:52 +08:00 committed by GitHub
parent fb1b9b15bb
commit f05b90ce1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1588,7 +1588,7 @@ export class HtmlVideoPlayer {
const player = this;
sessionPromise.then((s) => {
if (!s.TranscodingInfo || s.TranscodingInfo?.IsVideoDirect) {
if (!s.TranscodingInfo || s.TranscodingInfo.IsVideoDirect) {
// restore recorded delivery method if any
mediaStreamTextTracks.forEach((t) => {
t.DeliveryMethod = t.realDeliveryMethod ?? t.DeliveryMethod;