From 8cf6f69dc42f3733b3d0646425290036d7979709 Mon Sep 17 00:00:00 2001 From: vince-fugnitto Date: Tue, 7 Mar 2023 15:36:48 -0500 Subject: [PATCH] core: fallback to `applicationName` 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 --- packages/core/src/browser/window/window-title-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/browser/window/window-title-service.ts b/packages/core/src/browser/window/window-title-service.ts index 419ce84551033..a8a44fd777b64 100644 --- a/packages/core/src/browser/window/window-title-service.ts +++ b/packages/core/src/browser/window/window-title-service.ts @@ -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); }