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) { ...@@ -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();
......
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