stop background animation on disconnect

This commit is contained in:
schlagmichdoch 2023-01-07 01:53:53 +01:00
parent fe2422264a
commit cce8db7f84

View file

@ -526,6 +526,7 @@ class NetworkStatusUI {
Events.on('offline', _ => this._showOfflineMessage());
Events.on('online', _ => this._showOnlineMessage());
Events.on('ws-connected', _ => this._showOnlineMessage());
Events.on('ws-disconnected', _ => window.animateBackground(false));
if (!navigator.onLine) this._showOfflineMessage();
}