Skip to content

Commit d87b480

Browse files
ashkliankoalansemenov
authored andcommitted
Blank page is shown for a few seconds while loading dependencies #8817
1 parent bd6e3f0 commit d87b480

File tree

1 file changed

+5
-1
lines changed
  • modules/app/src/main/resources/assets/js

1 file changed

+5
-1
lines changed

modules/app/src/main/resources/assets/js/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,13 +514,17 @@ function getTheme(): string {
514514
return '';
515515
}
516516

517+
function isDefaultAppUrl(url: string): boolean {
518+
return url.endsWith('/main') || url.indexOf('/inbound/') > 0 || url.indexOf('/outbound/') > 0;
519+
}
520+
517521
async function startContentBrowser() {
518522
await import('lib-contentstudio/app/ContentAppPanel');
519523
const AppWrapper = (await import('lib-contentstudio/app/AppWrapper')).AppWrapper;
520524
const url: string = window.location.href;
521525
const commonWrapper = new AppWrapper(getTheme());
522526

523-
if (url.endsWith('/main')) {
527+
if (isDefaultAppUrl(url)) {
524528
commonWrapper.selectDefaultWidget();
525529
} else {
526530
commonWrapper.onItemAdded((item: Widget) => {

0 commit comments

Comments
 (0)