mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-26 09:46:19 -04:00
stop background animation on disconnect
This commit is contained in:
parent
fe2422264a
commit
cce8db7f84
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue