| 
				
			 | 
			
			
				
				@@ -17,9 +17,12 @@ const ConnectionErrors = JitsiMeetJS.errors.connection; 
			 | 
		
		
	
		
			
			| 
				17
			 | 
			
				17
			 | 
			
			
				
				  * @param {string} [roomName] the name of the conference. 
			 | 
		
		
	
		
			
			| 
				18
			 | 
			
				18
			 | 
			
			
				
				  */ 
			 | 
		
		
	
		
			
			| 
				19
			 | 
			
				19
			 | 
			
			
				
				 function checkForAttachParametersAndConnect(id, password, connection) { 
			 | 
		
		
	
		
			
			| 
				20
			 | 
			
				
			 | 
			
			
				
				-    console.log("call checkForAttachParametersAndConnect"); 
			 | 
		
		
	
		
			
			| 
				21
			 | 
			
				20
			 | 
			
			
				
				     if(window.XMPPAttachInfo){ 
			 | 
		
		
	
		
			
			| 
				22
			 | 
			
				21
			 | 
			
			
				
				         APP.connect.status = "connecting"; 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				22
			 | 
			
			
				
				+        // When connection optimization is not deployed or enabled the default 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				23
			 | 
			
			
				
				+        // value will be window.XMPPAttachInfo.status = "error" 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				24
			 | 
			
			
				
				+        // If the connection optimization is deployed and enabled and there is 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				25
			 | 
			
			
				
				+        // a failure the value will be window.XMPPAttachInfo.status = "error"  
			 | 
		
		
	
		
			
			| 
				23
			 | 
			
				26
			 | 
			
			
				
				         if(window.XMPPAttachInfo.status === "error") { 
			 | 
		
		
	
		
			
			| 
				24
			 | 
			
				27
			 | 
			
			
				
				             connection.connect({id, password}); 
			 | 
		
		
	
		
			
			| 
				25
			 | 
			
				28
			 | 
			
			
				
				             return; 
			 |