Bug fixed

This commit is contained in:
Eudes Inácio
2021-07-02 11:07:46 +01:00
parent 7657659b52
commit bdbf30802b
+1 -5
View File
@@ -9,8 +9,6 @@ import { ModalController, AlertController, AnimationController, Platform } from
import { NavigationExtras,Router } from '@angular/router';
import { ToastService } from '../services/toast.service';
import { WebNotificationsService } from '../services/webnotifications.service';
@Component({
selector: 'app-home',
templateUrl: './home.page.html',
@@ -55,7 +53,6 @@ export class HomePage implements OnInit {
private toastService: ToastService,
private animationController: AnimationController,
private notificatinsservice: NotificationsService,
private webnotificatinsservice: WebNotificationsService,
private platform: Platform) {
router.events.subscribe((val) => {
@@ -70,8 +67,7 @@ export class HomePage implements OnInit {
ngOnInit() {
if(this.platform.is('desktop') || this.platform.is('mobileweb')) {
this.webnotificatinsservice.webconnection();
this.webnotificatinsservice.onReceviNotificationWeb();
console.log('Notifications not supported')
} else {
this.mobilefirstConnect();
this.notificatinsservice.onReceviNotification();