From 207ac47aa7592909547c357f75da34108a51311a Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Wed, 18 Jan 2017 14:16:11 -0600 Subject: [PATCH] fix(iframe_api): s/getNumberOfParticipant/getNumberOfParticipants --- doc/api/api.md | 2 +- modules/API/external/external_api.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/api.md b/doc/api/api.md index d691d1c8bc..dc78f30d28 100644 --- a/doc/api/api.md +++ b/doc/api/api.md @@ -204,7 +204,7 @@ api.removeEventListeners(["incomingMessage", "outgoingMessageListener"]); You can get the number of participants in the conference with the following code: ``` -var numberOfParticipants = api.getNumberOfParticipant(); +var numberOfParticipants = api.getNumberOfParticipants(); ``` You can remove the embedded Jitsi Meet Conference with the following code: diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js index 71644dbdfb..550bcfee98 100644 --- a/modules/API/external/external_api.js +++ b/modules/API/external/external_api.js @@ -352,7 +352,7 @@ JitsiMeetExternalAPI.prototype.removeEventListeners = function(events) { * NOTE: the local participant is included. * @returns {int} the number of participants in the conference. */ -JitsiMeetExternalAPI.prototype.getNumberOfParticipant = function() { +JitsiMeetExternalAPI.prototype.getNumberOfParticipants = function() { return this.numberOfParticipants; };