Check network connection and background colorchange

This commit is contained in:
Eudes Inácio
2021-08-22 01:24:45 +01:00
parent 3f917ae7d4
commit c99f776310
5 changed files with 15 additions and 3 deletions
+6 -1
View File
@@ -14,6 +14,7 @@ import { ToDayEventStorage } from '../store/to-day-event-storage.service';
import { DocumentCounterService } from 'src/app/OtherService/document-counter.service'
import { PermissionService } from '../OtherService/permission.service';
import { TotalDocumentService, TotalDocumentStore } from '../store/total-document.service';
import { NetworkService } from '../services/network.service';
// import * as Sentry from "@sentry/browser";
@@ -74,6 +75,7 @@ export class HomePage implements OnInit {
private platform: Platform,
private activeroute: ActivatedRoute,
public documentCounterService: DocumentCounterService,
private network: NetworkService,
public p: PermissionService) {
this.router.events.subscribe((val) => {
@@ -87,7 +89,8 @@ export class HomePage implements OnInit {
}
ngOnInit() {
/* this.network.checkNetworkConnection;
this.network.checkNetworkDisconnection; */
console.log('Active route ', this.router.url)
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
console.log('Notifications not supported')
@@ -99,6 +102,8 @@ export class HomePage implements OnInit {
}
mobilefirstConnect() {
if(window['WLAuthorizationManager']) {