Skip to content

Commit

Permalink
Improved PR zulip#115
Browse files Browse the repository at this point in the history
  • Loading branch information
Lplenka committed Apr 27, 2017
1 parent 61a4293 commit 6382c6d
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') {
if (errorDescription === 'ERR_INTERNET_DISCONNECTED' || errorDescription === 'ERR_PROXY_CONNECTION_FAILED' || errorDescription === 'ERR_CONNECTION_RESET' ) {
console.log('Error Description:' + errorDescription);
checkConnectivity();
}
Expand Down

0 comments on commit 6382c6d

Please sign in to comment.