ref(iframe_API): Changing the format of the outgoing messages for API.js

This commit is contained in:
hristoterezov
2017-05-01 15:59:18 -05:00
parent 96bde3ff44
commit dfc94ff144
3 changed files with 30 additions and 18 deletions
+1 -1
View File
@@ -234,7 +234,7 @@ class JitsiMeetExternalAPI extends EventEmitter {
*/
_setupListeners() {
this._transport.on('event', ({ data, name }) => {
this._transport.on('event', ({ name, ...data }) => {
if (name === 'participant-joined') {
changeParticipantNumber(this, 1);
} else if (name === 'participant-left') {