remove extra identation

auto_join_3.3
christian2 2020-05-01 15:37:03 +02:00
parent 3717e41ac5
commit ebb728f4a8
1 changed files with 8 additions and 8 deletions

View File

@ -25,15 +25,15 @@ const metadata = {
common_labels = function(both, fn) { common_labels = function(both, fn) {
for (let [room_id, room] of rooms) { for (let [room_id, room] of rooms) {
for (let [peer_id, peer] of peers) { for (let [peer_id, peer] of peers) {
if (fn(peer)) { if (fn(peer)) {
let display_name = peer._displayName; let display_name = peer._displayName;
let user_agent = peer._socket.client.request.headers['user-agent']; let user_agent = peer._socket.client.request.headers['user-agent'];
let kind = both.kind; let kind = both.kind;
let codec = both.rtpParameters.codecs[0].mimeType.split('/')[1]; let codec = both.rtpParameters.codecs[0].mimeType.split('/')[1];
return { room_id, peer_id, display_name, user_agent, kind, codec }; return { room_id, peer_id, display_name, user_agent, kind, codec };
} }
} }
} }
throw new Error('cannot find generic labels'); throw new Error('cannot find generic labels');
} }