mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Invert two code blocks (issue on green state of peer name)
This commit is contained in:
parent
95d2540cb4
commit
8493d56993
@ -405,17 +405,16 @@ class CallWindow extends CustomEvents {
|
||||
*/
|
||||
async PeerReady(peerID) {
|
||||
|
||||
// Mark the peer as ready
|
||||
const el = this.getMemberNameEl(peerID)
|
||||
if(el)
|
||||
el.classList.add("ready")
|
||||
|
||||
|
||||
// Remove any previous connection
|
||||
if(this.peersEls.has(peerID)) {
|
||||
this.peersEls.get(peerID).destroy()
|
||||
}
|
||||
|
||||
// Mark the peer as ready
|
||||
const el = this.getMemberNameEl(peerID)
|
||||
if(el)
|
||||
el.classList.add("ready")
|
||||
|
||||
const peer = new SimplePeer({
|
||||
initiator: false,
|
||||
trickle: true, // Allow exchange of multiple ice candidates
|
||||
|
Loading…
Reference in New Issue
Block a user