From 5592f1ee962c168b8b4e702f193c86fed31d0566 Mon Sep 17 00:00:00 2001 From: Maciej Barelkowski Date: Tue, 18 Jun 2024 11:03:13 +0200 Subject: [PATCH] fix: set document title Closes #4376 --- app/lib/index.js | 15 --------------- client/public/index.html | 1 + 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/app/lib/index.js b/app/lib/index.js index 87a0794bdc..cecd518dfd 100644 --- a/app/lib/index.js +++ b/app/lib/index.js @@ -419,7 +419,6 @@ app.createEditorWindow = function() { const windowOptions = { resizable: true, show: false, - title: 'Camunda Modeler' + getTitleSuffix(app.metadata.version), minWidth: MINIMUM_SIZE.width, minHeight: MINIMUM_SIZE.height, webPreferences: { @@ -694,20 +693,6 @@ function bootstrap() { }; } -/** - * Returns the app title suffix based on app version. - * - * @param {string} version - * @return {string} - */ -function getTitleSuffix(version) { - if (version.includes('dev')) { - return ' (dev)'; - } - - return ''; -} - function generatePluginsTag(plugins) { if (!plugins || !plugins.length) { diff --git a/client/public/index.html b/client/public/index.html index f0826d06cb..4a426c4049 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -4,6 +4,7 @@ + Camunda Modeler