Skip to content

Commit 3c7dee7

Browse files
committed
refactor
1 parent dfd1463 commit 3c7dee7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

services/static-webserver/client/source/class/osparc/Application.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,15 @@ qx.Class.define("osparc.Application", {
209209
},
210210

211211
__updateTabName: function() {
212+
let newName = "";
212213
const platformName = osparc.store.StaticInfo.getInstance().getPlatformName();
213214
if (osparc.utils.Utils.isInZ43()) {
214-
document.title += " Z43";
215+
newName += " Z43";
215216
}
216217
if (platformName) {
217-
document.title += ` (${platformName})`;
218+
newName += ` (${platformName})`;
218219
}
220+
osparc.utils.Utils.updateTabName(newName);
219221
},
220222

221223

services/static-webserver/client/source/class/osparc/utils/Utils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ qx.Class.define("osparc.utils.Utils", {
9191

9292
FLOATING_Z_INDEX: 110000,
9393

94+
updateTabName: function(name) {
95+
document.title = name;
96+
},
97+
9498
replaceTokens: function(str, key, value) {
9599
// `str` might be a a localized string, get the string first
96100
str = str.toString ? str.toString() : str;

0 commit comments

Comments
 (0)