1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-27 01:35:48 +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() {
group = decodeURIComponent(location.pathname.replace(/^\/[a-z]*\//, ''));
let title = document.getElementById('title');
if(group !== '')
title.textContent = group.charAt(0).toUpperCase() + group.slice(1);
let title = group.charAt(0).toUpperCase() + group.slice(1);
if(group !== '') {
document.title = title;
document.getElementById('title').textContent = title
}
myid = randomid();