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 <[email protected]>
  • Loading branch information
vince-fugnitto committed Mar 7, 2023
1 parent 32ca0db commit 8cf6f69
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 ? this._title : FrontendApplicationConfigProvider.get().applicationName;
this.onDidChangeTitleEmitter.fire(this._title);
}

Expand Down

0 comments on commit 8cf6f69

Please sign in to comment.