mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-05-13 07:55:01 +00:00
stop background animation on disconnect
This commit is contained in:
@@ -526,6 +526,7 @@ class NetworkStatusUI {
|
|||||||
Events.on('offline', _ => this._showOfflineMessage());
|
Events.on('offline', _ => this._showOfflineMessage());
|
||||||
Events.on('online', _ => this._showOnlineMessage());
|
Events.on('online', _ => this._showOnlineMessage());
|
||||||
Events.on('ws-connected', _ => this._showOnlineMessage());
|
Events.on('ws-connected', _ => this._showOnlineMessage());
|
||||||
|
Events.on('ws-disconnected', _ => window.animateBackground(false));
|
||||||
if (!navigator.onLine) this._showOfflineMessage();
|
if (!navigator.onLine) this._showOfflineMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user