Browse Source
do not update participants class if the same
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/109/head
Morris Jobke
9 years ago
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with
5 additions and
2 deletions
-
js/webrtc.js
|
|
|
@ -31,8 +31,11 @@ var webrtc; |
|
|
|
currentUsersNo = 1; |
|
|
|
} |
|
|
|
|
|
|
|
$('#app-content').attr('class', ''); |
|
|
|
$('#app-content').addClass('participants-' + currentUsersNo); |
|
|
|
var appContentElement = $('#app-content'), |
|
|
|
participantsClass = 'participants-' + currentUsersNo; |
|
|
|
if (!appContentElement.hasClass(participantsClass)) { |
|
|
|
appContentElement.attr('class', '').addClass(participantsClass); |
|
|
|
} |
|
|
|
|
|
|
|
var disconnectedUsers = previousUsersInRoom.diff(currentUsersInRoom); |
|
|
|
disconnectedUsers.forEach(function(user) { |
|
|
|
|