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

@ -31,9 +31,9 @@ export default class StatusMessage {
this.container.classList.remove("error-message")
}
showError(message: string, duration?: number) {
showError(message: string | Error, duration?: number) {
this.clearStyle()
this.show(message, duration || 4000)
this.show(message.toString(), duration || 4000)
this.container.classList.add("error-message")
}