1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +01:00

Set page title.

This commit is contained in:
Juliusz Chroboczek 2020-04-25 17:43:56 +02:00
parent 25825e5b22
commit d46014242d

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();