mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
multiple imports optimized
This commit is contained in:
parent
2243b35311
commit
5b5d6a45b0
7 changed files with 63 additions and 63 deletions
|
@ -18,6 +18,7 @@ import '../../assets/css/clearbutton.scss';
|
|||
import '../../assets/css/flexstyles.scss';
|
||||
import ServerConnections from '../ServerConnections';
|
||||
import toast from '../toast/toast';
|
||||
import { appRouter } from '../appRouter';
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
||||
|
@ -244,9 +245,7 @@ import toast from '../toast/toast';
|
|||
if (parentId) {
|
||||
reload(context, parentId, item.ServerId);
|
||||
} else {
|
||||
import('../appRouter').then((appRouter) => {
|
||||
appRouter.goHome();
|
||||
});
|
||||
appRouter.goHome();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue