From 4ab39152921ece989ee268ae95c537a88703b472 Mon Sep 17 00:00:00 2001 From: Vincent Fugnitto Date: Wed, 8 Mar 2023 09:46:20 -0500 Subject: [PATCH] core: fallback to `applicationName` (#12265) 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..175cb26520501 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 || FrontendApplicationConfigProvider.get().applicationName; this.onDidChangeTitleEmitter.fire(this._title); }