diff --git a/src/app/services/notifications.service.ts b/src/app/services/notifications.service.ts index 2eeef5851..da7264405 100644 --- a/src/app/services/notifications.service.ts +++ b/src/app/services/notifications.service.ts @@ -171,9 +171,7 @@ export class NotificationsService { console.log('Push notification recived: failure ' + error.responseText); console.log(JSON.stringify(error)); } - ).fail((data)=>{ - console.log('faild', data) - }) + ) } else { console.log('not called') } @@ -241,7 +239,7 @@ export class NotificationsService { } this.callbacks.forEach( e=> { - if(e.type == data.Object && e.type == 'any') { + if(e.type == data.Object || e.type == 'any') { e.funx() } })