File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments