remove notification for mobile

This commit is contained in:
Peter Maquiran
2021-08-31 19:31:46 +01:00
parent 82a601ccec
commit 3437c19027
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -54,7 +54,9 @@ export class NotificationsService {
registerCallback(type: string, funx: Function, object: any = {} ) {
this.callbacks.push({type, funx})
synchro.registerCallback('Notification',funx, type)
if(!object.hasOwnProperty('desktop') && object['desktop'] != false) {
synchro.registerCallback('Notification',funx, type)
}
}
+2 -2
View File
@@ -133,8 +133,8 @@ class SynchroService {
if(idConnection != this.id ) {
//if(window['platform'].is('desktop') || this.platform.is('mobileweb')) {}
//else return false
if(window['platform'].is('desktop') || this.platform.is('mobileweb')) {}
else return false
if(environment.production) return false