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

Merge branch 'master' into enable-airplay-audioplayer

This commit is contained in:
stamatovg 2023-07-20 18:10:13 +03:00 committed by GitHub
commit e0d4aa6c77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
227 changed files with 5818 additions and 2022 deletions

View file

@ -243,7 +243,7 @@ function bindEvents(elem) {
positionSlider.getBubbleText = function (value) {
const state = lastPlayerState;
if (!state || !state.NowPlayingItem || !currentRuntimeTicks) {
if (!state?.NowPlayingItem || !currentRuntimeTicks) {
return '--:--';
}
@ -489,7 +489,7 @@ function imageUrl(item, options) {
options = options || {};
options.type = options.type || 'Primary';
if (item.ImageTags && item.ImageTags[options.type]) {
if (item.ImageTags?.[options.type]) {
options.tag = item.ImageTags[options.type];
return ServerConnections.getApiClient(item.ServerId).getScaledImageUrl(item.PrimaryImageItemId || item.Id, options);
}