File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 4
4
< meta charset ="UTF-8 " />
5
5
< link rel ="icon " type ="image/svg+xml " href ="/favicon.ico " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
- < title > Cesium Sandcastle</ title >
7
+ < title > Sandcastle | CesiumJS </ title >
8
8
< style >
9
9
/* Load fonts for itwin-ui */
10
10
@font-face {
Original file line number Diff line number Diff line change @@ -267,12 +267,12 @@ function App() {
267
267
envString = `${ host . replace ( "localhost:" , "" ) } ` ;
268
268
}
269
269
270
- const baseTitle = "Cesium Sandcastle" ;
271
270
const dirtyIndicator = codeState . dirty ? "*" : "" ;
272
- if ( title !== "" ) {
273
- document . title = `${ envString } ${ title } ${ dirtyIndicator } | ${ baseTitle } ` ;
271
+ if ( title === "" || title === "New Sandcastle" ) {
272
+ // No need to clutter the window/tab with a name if not viewing a named gallery demo
273
+ document . title = `${ envString } Sandcastle${ dirtyIndicator } | CesiumJS` ;
274
274
} else {
275
- document . title = `${ envString } ${ baseTitle } ` ;
275
+ document . title = `${ envString } ${ title } ${ dirtyIndicator } | Sandcastle | CesiumJS ` ;
276
276
}
277
277
} , [ title , codeState . dirty ] ) ;
278
278
You can’t perform that action at this time.
0 commit comments