repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 5dfccd8e503a71399776d77f5d598f35f9e42282:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 5dfccd8e503a71399776d77f5d598f35f9e42282
Author: James Baicoianu 
Date:   Wed Feb 26 20:48:41 2020 -0800

    Don't throw errors if no room is loaded, remove debug logs

diff --git a/media/assets/webui/apps/comms/comms.js b/media/assets/webui/apps/comms/comms.js
index dd7bed4bd51fde63de0fc1ffdb4cb16f49d9c7cc..
index ..9548c3188188a2b0efffba3909cfeedcc794379f 100644
--- a/media/assets/webui/apps/comms/comms.js
+++ b/media/assets/webui/apps/comms/comms.js
@@ -27,7 +27,9 @@ elation.elements.define('janus-comms-status', class extends elation.elements.bas
   }
   create() {
     this.player = player;
-    this.room = room;
+    if (typeof room != 'undefined') {
+      this.room = room;
+    }
     if (janus.nework) {
       this.server = janus.network.getServerForRoom(room);
     }
@@ -37,7 +39,9 @@ elation.elements.define('janus-comms-status', class extends elation.elements.bas
 elation.elements.define('janus-comms-userlist', class extends elation.elements.ui.list {
   create() {
     this.player = player;
-    this.room = room;
+    if (typeof room != 'undefined') {
+      this.room = room;
+    }
     this.elements = elation.elements.fromTemplate('janus.comms.userlist', this);
     this.client = this.getClient();
     this.janusweb = this.client.janusweb;
@@ -118,9 +122,7 @@ elation.elements.define('janus-comms-chat', class extends elation.elements.base
     //this.elements.chatinput.addEventListener('accept', (ev) => this.sendMessage(ev.value));
     this.elements.chatinput.onaccept = (ev) => {
       this.sendMessage(this.elements.chatinput.value);
-console.log('dur', this.shouldreturnfocus);
       if (this.shouldreturnfocus) {
-console.log('go back');
         player.enable();
       }
     }

-----END OF PAGE-----