Await promise

feature/cd
garrettmills 4 years ago
parent af01cd0f5d
commit a1a70e0548
No known key found for this signature in database
GPG Key ID: 6ACD58D6ADACFC6E

@ -27,7 +27,7 @@ class MessageService {
this.listener = setInterval(() => this._listener_tick(), this.listener_interval)
window.addEventListener('beforeunload', () => this.stop_listener())
try {
this._listener_tick()
await this._listener_tick()
} catch (e) {
this.stop_listener()
}

Loading…
Cancel
Save