Skip to content

Commit

Permalink
fix: set document title
Browse files Browse the repository at this point in the history
Closes #4376
  • Loading branch information
barmac committed Jun 18, 2024
1 parent e19bb03 commit 5592f1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
15 changes: 0 additions & 15 deletions app/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8" />
<meta http-equiv="Content-Security-Policy" content="script-src 'self'" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Camunda Modeler</title>

<style>
body, html {
Expand Down

0 comments on commit 5592f1e

Please sign in to comment.