mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	Improved PR #115
This commit is contained in:
		@@ -103,7 +103,7 @@ function checkConnectivity() {
 | 
			
		||||
function checkConnection() {
 | 
			
		||||
	// eslint-disable-next-line no-unused-vars
 | 
			
		||||
	mainWindow.webContents.on('did-fail-load', (event, errorCode, errorDescription, validatedURL) => {
 | 
			
		||||
		if (errorDescription === 'ERR_INTERNET_DISCONNECTED' || errorDescription === 'ERR_PROXY_CONNECTION_FAILED') {
 | 
			
		||||
		if (errorDescription === 'ERR_INTERNET_DISCONNECTED' || errorDescription === 'ERR_PROXY_CONNECTION_FAILED' || errorDescription === 'ERR_CONNECTION_RESET' ) {
 | 
			
		||||
			console.log('Error Description:' + errorDescription);
 | 
			
		||||
			checkConnectivity();
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user