Force online check at boot; more dark mode fixes
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-11-10 11:13:30 -06:00
parent ab990caca4
commit 8f3cc53ca5
2 changed files with 15 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ export class ApiService {
}
protected startOfflineObserver() {
const passiveCheckTime = 5;
const passiveCheckTime = 120;
const checkTimes = [5, 5, 10, 10, 15, 15, 20, 20, 30, 30, 30, 60, 60, 500];
let currentCheckTimeIndex = 0;
let hasNetConnection = true;
@@ -142,6 +142,11 @@ export class ApiService {
});
startPassiveCheck();
this.checkOnline().then(server => {
hasServerConnection = server;
handleNetConnectionEvent();
});
}
public checkOnline(): Promise<boolean> {