Skip to content

Commit

Permalink
core: fallback to applicationName
Browse files Browse the repository at this point in the history
The commit adds handling to fallback to the `applicationName` when setting the window title which would previously display either `index.html` in electron  or `localhost:3000` in the browser.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto committed Mar 8, 2023
1 parent 32ca0db commit 8de07e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/browser/window/window-title-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class WindowTitleService {
if (developmentHost) {
this._title = developmentHost + this.separator + this._title;
}
document.title = this._title;
document.title = this._title || FrontendApplicationConfigProvider.get().applicationName;
this.onDidChangeTitleEmitter.fire(this._title);
}

Expand Down

0 comments on commit 8de07e6

Please sign in to comment.