mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 05:34:58 -05:00
Reconnect websocket when window receives focus
This commit is contained in:
@@ -93,6 +93,8 @@ export default {
|
|||||||
moment.locale(navigator.language)
|
moment.locale(navigator.language)
|
||||||
this.connect()
|
this.connect()
|
||||||
|
|
||||||
|
window.addEventListener(focus, () => this.connect())
|
||||||
|
|
||||||
// Start the progress bar on app start
|
// Start the progress bar on app start
|
||||||
this.$Progress.start()
|
this.$Progress.start()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user