mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 08:16:09 +08:00
fix(offline-notif) Try to connect immediately upon window focus
Summary: see title Test Plan: manual Reviewers: mark Reviewed By: mark Differential Revision: https://phab.nylas.com/D3901
This commit is contained in:
parent
06fe77bb21
commit
8d875a6307
|
@ -101,6 +101,7 @@ export default class OfflineNotification extends React.Component {
|
|||
// only attempt to retry if the window is in the foreground to avoid
|
||||
// the battery hit.
|
||||
if (!this.state.connected && !document.body.classList.contains('is-blurred')) {
|
||||
Actions.retryDeltaConnection();
|
||||
this._updateInterval = setInterval(() => {
|
||||
Actions.retryDeltaConnection();
|
||||
}, CHECK_STATUS_INTERVAL);
|
||||
|
|
Loading…
Reference in a new issue