diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-10-29 15:00:05 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-10-29 15:00:05 +0200 |
| commit | 15541b1c9b23a2caf490446bc7be08d66ef10e99 (patch) | |
| tree | 484206c14a66a27fc16ffb9550f1201d3b3c769f /htdocs/src/js | |
| parent | 26282b5e394d9b4007efbbe246a7afd7dba2d5ac (diff) | |
chore: update document title
Set a default title to static page, then change the title on project
view.
Diffstat (limited to 'htdocs/src/js')
| -rw-r--r-- | htdocs/src/js/app.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/htdocs/src/js/app.js b/htdocs/src/js/app.js index 4f5f5a5..57ac458 100644 --- a/htdocs/src/js/app.js +++ b/htdocs/src/js/app.js @@ -247,6 +247,7 @@ function showProject(id) { }); detailsBtn.addEventListener('click', toggleProjectDetails); window.history.pushState({}, currentProject.name, `#${id}`); + document.title = `${currentProject.name} | Demo | Armand Philippot`; main.replaceChildren(preview, details); } |
