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

Fix dialog helper not resolving

This commit is contained in:
Bill Thornton 2021-03-09 16:17:18 -05:00
parent 41313f66d3
commit a6df633895

View file

@ -106,6 +106,15 @@ import '../../assets/css/scrollstyles.css';
tryRemoveElement(dlg);
}
}
//resolve();
// if we just called history.back(), then use a timeout to allow the history events to fire first
setTimeout(() => {
resolve({
element: dlg,
closedByBack: self.closedByBack
});
}, 1);
}
dlg.addEventListener('close', onDialogClosed);