File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
modules/app/src/main/resources/assets/js Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -514,13 +514,17 @@ function getTheme(): string {
514
514
return '' ;
515
515
}
516
516
517
+ function isDefaultAppUrl ( url : string ) : boolean {
518
+ return url . endsWith ( '/main' ) || url . indexOf ( '/inbound/' ) > 0 || url . indexOf ( '/outbound/' ) > 0 ;
519
+ }
520
+
517
521
async function startContentBrowser ( ) {
518
522
await import ( 'lib-contentstudio/app/ContentAppPanel' ) ;
519
523
const AppWrapper = ( await import ( 'lib-contentstudio/app/AppWrapper' ) ) . AppWrapper ;
520
524
const url : string = window . location . href ;
521
525
const commonWrapper = new AppWrapper ( getTheme ( ) ) ;
522
526
523
- if ( url . endsWith ( '/main' ) ) {
527
+ if ( isDefaultAppUrl ( url ) ) {
524
528
commonWrapper . selectDefaultWidget ( ) ;
525
529
} else {
526
530
commonWrapper . onItemAdded ( ( item : Widget ) => {
You can’t perform that action at this time.
0 commit comments