Reconnect on failure

This commit is contained in:
2018-04-02 17:20:25 +02:00
parent b201649b4b
commit bb555457c6
3 changed files with 23 additions and 3 deletions

View File

@ -117,6 +117,10 @@ export default class AnimeNotifier {
document.getElementById("status-message-text")
)
this.app.onError = (error: Error) => {
this.statusMessage.showError(error, 3000)
}
// Push manager
this.pushManager = new PushManager()