mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Use only one way to go back
This commit is contained in:
parent
04c4e03ac1
commit
985a7fb670
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ import '../../assets/css/scrollstyles.scss';
|
||||||
if (!self.closedByBack && isHistoryEnabled(dlg)) {
|
if (!self.closedByBack && isHistoryEnabled(dlg)) {
|
||||||
const state = window.history.state || {};
|
const state = window.history.state || {};
|
||||||
if (state.dialogId === hash) {
|
if (state.dialogId === hash) {
|
||||||
window.history.back();
|
appRouter.back();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -213,7 +213,7 @@ import '../../assets/css/scrollstyles.scss';
|
||||||
export function close(dlg) {
|
export function close(dlg) {
|
||||||
if (isOpened(dlg)) {
|
if (isOpened(dlg)) {
|
||||||
if (isHistoryEnabled(dlg)) {
|
if (isHistoryEnabled(dlg)) {
|
||||||
window.history.back();
|
appRouter.back();
|
||||||
} else {
|
} else {
|
||||||
closeDialog(dlg);
|
closeDialog(dlg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue