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

Add back button to experimental layout

This commit is contained in:
Bill Thornton 2023-07-06 17:09:54 -04:00
parent c7cde3f727
commit 65b17bce34
2 changed files with 28 additions and 2 deletions

View file

@ -167,12 +167,13 @@ class AppRouter {
canGoBack() {
const { path, route } = this.currentRouteInfo;
const pathOnly = path?.split('?')[0] ?? '';
if (!route) {
return false;
}
if (!document.querySelector('.dialogContainer') && (START_PAGE_TYPES.includes(route.type) || START_PAGE_PATHS.includes(path))) {
if (!document.querySelector('.dialogContainer') && (START_PAGE_TYPES.includes(route.type) || START_PAGE_PATHS.includes(pathOnly))) {
return false;
}