mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
remove alert and change tracer
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user