mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Bug fixed
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user