Improve set default value

This commit is contained in:
Peter Maquiran
2021-08-31 13:29:26 +01:00
parent 57192fb3b2
commit 067b54026e
+11 -1
View File
@@ -40,7 +40,17 @@ export class NotificationsService {
private toastService: ToastService,
private zone: NgZone,
private activeroute: ActivatedRoute,
private jsonstore: JsonStore) { }
private jsonstore: JsonStore) {
this.storageService.get("Notifications").then((value) => {
if(value == 'žée') {
this.storageService.store("Notifications", [])
}
})
}
registerCallback(type: string, funx: Function, object: any = {} ) {