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

Add default error text

This commit is contained in:
Dmitry Lyzo 2020-11-21 22:51:24 +03:00
parent 3124a4af9b
commit 89e2e77886
2 changed files with 2 additions and 2 deletions

View file

@ -2247,7 +2247,7 @@ class PlaybackManager {
}).catch((errorCode) => { }).catch((errorCode) => {
self.stop(player); self.stop(player);
loading.hide(); loading.hide();
showPlaybackInfoErrorMessage(self, errorCode || ''); showPlaybackInfoErrorMessage(self, errorCode || 'ErrorDefault');
}); });
}); });
} }

View file

@ -148,7 +148,7 @@ function setCurrentSrc(instance, elem, options) {
Events.trigger(instance, 'pause'); Events.trigger(instance, 'pause');
} }
}, },
'onError': (e) => reject(errorCodes[e.data] || '') // FIXME: default error code/text? 'onError': (e) => reject(errorCodes[e.data] || 'ErrorDefault')
}, },
playerVars: { playerVars: {
controls: 0, controls: 0,