Reconnect websocket when window receives focus

This commit is contained in:
Ben Willmore 2022-02-25 22:03:21 +00:00 committed by chme
parent 6519b18aa0
commit a24cb11e17

View File

@ -93,6 +93,8 @@ export default {
moment.locale(navigator.language)
this.connect()
window.addEventListener(focus, () => this.connect())
// Start the progress bar on app start
this.$Progress.start()