Update session display
This commit is contained in:
@@ -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(', ');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user