Skip to content

Commit

Permalink
Merge pull request #106 from btaens/spinner-offline-fix
Browse files Browse the repository at this point in the history
fix(main-renderer): fixes spinner showing on google login (#105)
  • Loading branch information
sidneys authored Nov 14, 2019
2 parents 586e6de + a5e7f86 commit cd142e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/scripts/renderer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ ipcRenderer.on('tray-close', () => {
/**
* @listens webviewViewElement#Event:did-fail-load
*/
webviewViewElement.addEventListener('did-fail-load', () => {
webviewViewElement.addEventListener('did-fail-load', (e) => {
if (e.errorCode === -3) {
return
}

logger.debug('webviewViewElement#did-fail-load')

onOffline()
Expand Down

0 comments on commit cd142e0

Please sign in to comment.