Skip to content

Commit

Permalink
Update PR zulip#115 Added ERR_NAME_NOT_RESOLVED condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Lplenka committed Apr 27, 2017
1 parent 487ee53 commit d2daa65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' || errorDescription === 'ERR_CONNECTION_RESET') {
if (errorDescription === 'ERR_INTERNET_DISCONNECTED' || errorDescription === 'ERR_PROXY_CONNECTION_FAILED' || errorDescription === 'ERR_CONNECTION_RESET' || errorDescription === 'ERR_NAME_NOT_RESOLVED') {
console.log('Error Description:' + errorDescription);
checkConnectivity();
}
Expand Down

0 comments on commit d2daa65

Please sign in to comment.