Skip to content

Commit

Permalink
Override default title with appName on app start.
Browse files Browse the repository at this point in the history
  • Loading branch information
na9da committed Oct 21, 2024
1 parent 082810c commit 74f8d8a
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 74f8d8a

Please sign in to comment.