mirror of
https://github.com/jech/galene.git
synced 2024-11-25 10:05:58 +01:00
Set page title.
This commit is contained in:
parent
25825e5b22
commit
d46014242d
1 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue