Commit d4601424 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Set page title.

parent 25825e5b
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment