mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 23:23:54 +08:00
fix(offline-notif) Properly check and clear offline notification
This commit is contained in:
parent
63c174a90c
commit
bfdbefb78a
1 changed files with 2 additions and 2 deletions
|
@ -53,8 +53,8 @@ export default class OfflineNotification extends React.Component {
|
|||
// foreground to avoid the battery hit.
|
||||
if (!this.state.connected && !document.body.classList.contains('is-blurred')) {
|
||||
this._updateInterval = setInterval(() => {
|
||||
this.setState(this.getStateFromStores());
|
||||
}, 1000);
|
||||
Actions.retryDeltaConnection();
|
||||
}, 5000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue