Skip to content

Commit

Permalink
feat(client): update banner with errors
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjbarton committed Dec 28, 2020
1 parent fa65206 commit 0e60898
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ function StatusUpdater (socket, titleElement, bannerElement, browsersElement) {
}

socket.on('connect', updateBanner('connected'))
socket.on('connect_error', (error) => updateBanner('connect_error ' + error))
socket.on('karma_error', (error) => updateBanner('karma_error ' + error))
socket.on('disconnect', updateBanner('disconnected'))
socket.on('reconnecting', updateBanner('reconnecting in $ seconds...'))
socket.on('reconnect', updateBanner('connected'))
Expand Down

0 comments on commit 0e60898

Please sign in to comment.