mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Invert two code blocks (issue on green state of peer name)
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user