[CRX] Call callback instead of onCompleted
This commit is contained in:
		
							parent
							
								
									3eaeacfe19
								
							
						
					
					
						commit
						7e345b223c
					
				@ -275,7 +275,7 @@ var ChromeCom = (function ChromeComClosure() {
 | 
				
			|||||||
    function onDisconnect() {
 | 
					    function onDisconnect() {
 | 
				
			||||||
      // When the connection fails, ignore the error and call the callback.
 | 
					      // When the connection fails, ignore the error and call the callback.
 | 
				
			||||||
      port = null;
 | 
					      port = null;
 | 
				
			||||||
      onCompleted();
 | 
					      callback();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    function onCompleted() {
 | 
					    function onCompleted() {
 | 
				
			||||||
      port.onDisconnect.removeListener(onDisconnect);
 | 
					      port.onDisconnect.removeListener(onDisconnect);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user