Code refactoring

This commit is contained in:
Eudes Inácio
2021-08-30 14:55:24 +01:00
parent 81b7f4820b
commit 133b832f9b
4 changed files with 24 additions and 23 deletions
+2 -2
View File
@@ -212,7 +212,7 @@ export class NotificationsService {
//this.jsonstore.createCollection('Notifications',message);
this.DataArray.push(message)
console.log("On ReceiveNotification", this.DataArray)
this.storageService.store("Notifications",JSON.stringify(this.DataArray))
this.storageService.store("Notifications",this.DataArray)
console.log(message);
var data = JSON.parse(message.payload);
@@ -229,7 +229,7 @@ export class NotificationsService {
}
this.callbacks.forEach( e=> {
if(e.type == data.Object) {
if(e.type == data.Object || e.type == "any") {
e.funx()
}
})