repo: janusweb action: commit revision: path_from: revision_from: 5dfccd8e503a71399776d77f5d598f35f9e42282: path_to: revision_to:
commit 5dfccd8e503a71399776d77f5d598f35f9e42282 Author: James BaicoianuDate: 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
--- 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-----