Skip to content

Commit

Permalink
core: fallback to applicationName (#12265)
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 authored Mar 8, 2023
1 parent 9fd7735 commit 4ab3915
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 4ab3915

Please sign in to comment.