From 7c07dfff32089bf7fab2e969ec6c236c909445e8 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Mon, 30 Aug 2021 12:13:06 +0100 Subject: [PATCH] fix --- src/app/services/notifications.service.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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() } })