1
Fork 0

Set page title.

This commit is contained in:
Juliusz Chroboczek 2020-04-25 17:43:56 +02:00
parent 25825e5b22
commit d46014242d
1 changed files with 5 additions and 3 deletions

View File

@ -843,9 +843,11 @@ document.getElementById('disconnectbutton').onclick = function(e) {
function start() { function start() {
group = decodeURIComponent(location.pathname.replace(/^\/[a-z]*\//, '')); group = decodeURIComponent(location.pathname.replace(/^\/[a-z]*\//, ''));
let title = document.getElementById('title'); let title = group.charAt(0).toUpperCase() + group.slice(1);
if(group !== '') if(group !== '') {
title.textContent = group.charAt(0).toUpperCase() + group.slice(1); document.title = title;
document.getElementById('title').textContent = title
}
myid = randomid(); myid = randomid();