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:
parent
6530d2d7d8
commit
571b28099e
7 changed files with 26 additions and 7 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue