Forget to save home page

This commit is contained in:
Eudes Inácio
2021-11-05 10:44:36 +01:00
parent 9b96676543
commit 7378bb3dca
-17
View File
@@ -24,10 +24,6 @@ import { Storage } from '@ionic/storage';
import { EventsService } from 'src/app/services/events.service';
import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
<<<<<<< HEAD
=======
>>>>>>> migraCapacitor
@Component({
selector: 'app-home',
templateUrl: './home.page.html',
@@ -87,11 +83,7 @@ export class HomePage implements OnInit {
private offlinemanager: OfflineManagerService,
private storage: Storage,
private eventservice: EventsService,
<<<<<<< HEAD
private screenOrientation: ScreenOrientation) {
=======
private screenOrientation: ScreenOrientation,) {
>>>>>>> migraCapacitor
/* this.webNotificationPopupService.askNotificationPermission() */
@@ -121,22 +113,13 @@ export class HomePage implements OnInit {
ngOnInit() {
<<<<<<< HEAD
this.notificationsService.onReceviNotification();
=======
this.notificationsService.onReciveForeground();
this.notificationsService.onReciveBackground();
>>>>>>> migraCapacitor
window.addEventListener('online', () => {
console.log('Became online')
this.backgroundservice.online()
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
<<<<<<< HEAD
this.webnotification.webconnection();
=======
>>>>>>> migraCapacitor
} else {
/* this.notificationsService.onReceviNotification(); */
this.offlinemanager.synchnize()