Update session display

This commit is contained in:
Kai Vogelgesang
2020-04-17 02:25:12 +02:00
parent 940fed4bdf
commit 785504ab6c
3 changed files with 9 additions and 5 deletions

View File

@@ -7,7 +7,11 @@ ws.onmessage = function(event) {
console.log(msg);
if (msg.hasOwnProperty('session')) {
document.getElementById('current_session').innerText = msg.session;
if (msg.hasOwnProperty('currentsession')) {
document.getElementById('current_session').innerText = msg.currentsession;
}
if (msg.hasOwnProperty('allsessions')) {
document.getElementById('all_sessions').innerText = msg.allsessions.join(', ');
}
};