mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 13:03:22 +00:00
xo: Enable padding-line-between-statements.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
cfdc08a038
commit
5ae2a717fa
@@ -39,6 +39,7 @@ export default class ReconnectUtil {
|
||||
if (ignoreCerts === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
request(
|
||||
{
|
||||
url: `${this.url}/static/favicon.ico`,
|
||||
@@ -71,11 +72,13 @@ export default class ReconnectUtil {
|
||||
if (this.alreadyReloaded) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (await this.isOnline()) {
|
||||
ipcRenderer.send('forward-message', 'reload-viewer');
|
||||
logger.log('You\'re back online.');
|
||||
return true;
|
||||
}
|
||||
|
||||
logger.log('There is no internet connection, try checking network cables, modem and router.');
|
||||
const errorMessageHolder = document.querySelector('#description');
|
||||
if (errorMessageHolder) {
|
||||
@@ -83,6 +86,7 @@ export default class ReconnectUtil {
|
||||
<div>Your internet connection doesn't seem to work properly!</div>
|
||||
<div>Verify that it works and then click try again.</div>`;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user