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:
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() {
|
||||
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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue