remove alert and change tracer

This commit is contained in:
Peter Maquiran
2024-06-19 09:03:26 +01:00
parent cb1e2ad753
commit 3fc377299c
18 changed files with 36 additions and 30 deletions
+5 -5
View File
@@ -21,7 +21,7 @@ export class BackgroundService {
private themeservice: ThemeService,
private storageservice: StorageService,
private http: HttpClient,
) {
) {
window.addEventListener('focus', (event) => {
if(this.status == 'offline') {
@@ -35,7 +35,7 @@ export class BackgroundService {
return false
}
this.status = 'online'
this.paint()
this.callBacks.forEach((e) => {
if (e.type == 'Online') {
@@ -104,14 +104,14 @@ export class BackgroundService {
}
try {
await this.http.post(environment.apiURL + "UserAuthentication/Login", '', opts).toPromise();
await this.http.get("assets/images/theme/gov/governoangola_A.png").toPromise();
return true
} catch (error) {
if(error.status === 0) {
return false
}
}
return true
}