This commit is contained in:
Peter Maquiran
2023-07-26 13:06:42 +01:00
parent 9e8bb92b96
commit a08bb5d4f4
18 changed files with 90 additions and 31 deletions
+11 -3
View File
@@ -72,7 +72,7 @@ export class BackgroundService {
async offline() {
if(this.status == 'offline') {
return false
return true
}
const hasReachedTheServer = await this.tryToReachTheServer()
@@ -90,7 +90,11 @@ export class BackgroundService {
e.funx()
}
})
return true
}
return false
}
@@ -101,11 +105,15 @@ export class BackgroundService {
try {
await this.http.post(environment.apiURL + "UserAuthentication/Login", '', opts).toPromise();
return true
} catch (error) {
if(error.status != 400) {
if(error.status === 0) {
return false
}
}
return true
}
}