Skip to content

Commit

Permalink
Merge pull request #700 from TerriaJS/app-name-title
Browse files Browse the repository at this point in the history
Override default title with appName on app start.
  • Loading branch information
na9da authored Oct 21, 2024
2 parents 082810c + 74f8d8a commit 195abe6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ module.exports = terria
terria.raiseErrorToUser(e);
})
.finally(function () {
// Override the default document title with appName. Check first for default
// title, because user might have already customized the title in
// index.ejs
if (document.title === "Terria Map") {
document.title = terria.appName;
}

terria.loadInitSources().then((result) => result.raiseError(terria));

try {
Expand Down

0 comments on commit 195abe6

Please sign in to comment.