From 067b54026e8fa85446a95773d25d6c7ec775fd42 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Tue, 31 Aug 2021 13:29:26 +0100 Subject: [PATCH] Improve set default value --- src/app/services/notifications.service.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/app/services/notifications.service.ts b/src/app/services/notifications.service.ts index 6f7301aac..feb297b5b 100644 --- a/src/app/services/notifications.service.ts +++ b/src/app/services/notifications.service.ts @@ -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 = {} ) {