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

Fix unhandled promises

This commit is contained in:
Bill Thornton 2024-10-24 01:35:04 -04:00
parent 6530d2d7d8
commit 571b28099e
7 changed files with 26 additions and 7 deletions

View file

@ -3113,11 +3113,11 @@ export class PlaybackManager {
};
self.queue = function (options, player = this._currentPlayer) {
queue(options, '', player);
return queue(options, '', player);
};
self.queueNext = function (options, player = this._currentPlayer) {
queue(options, 'next', player);
return queue(options, 'next', player);
};
function queue(options, mode, player) {

View file

@ -145,6 +145,8 @@ function addToPlaylist(dlg: DialogElement, id: string) {
playbackManager.queue({
serverId: currentServerId,
ids: itemIds.split(',')
}).catch(err => {
console.error('[PlaylistEditor] failed to add to queue', err);
});
dlg.submitted = true;
dialogHelper.close(dlg);