From 65100e365ffb7c97f86f1e3067e86803c05ec225 Mon Sep 17 00:00:00 2001
From: Philipp Sautner <philipp.sautner@mni.thm.de>
Date: Mon, 25 Oct 2021 13:51:22 +0200
Subject: [PATCH] Deletes notificationService from localStorageService since it
 causes circular dependencies

---
 src/app/app.module.ts                                | 2 +-
 src/app/services/http/local-storage-share.service.ts | 5 +----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 5eba841e5..5d6a2954f 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -153,7 +153,7 @@ export function initializeApp(appConfig: AppConfig) {
     AppConfig,
     { provide: APP_INITIALIZER,
       useFactory: initializeApp,
-      deps: [LocalStorageShareService], multi: true
+      deps: [AppConfig, LocalStorageShareService], multi: true
     },
     {
       provide: HTTP_INTERCEPTORS,
diff --git a/src/app/services/http/local-storage-share.service.ts b/src/app/services/http/local-storage-share.service.ts
index 0b2cef8b0..f8e50eb68 100644
--- a/src/app/services/http/local-storage-share.service.ts
+++ b/src/app/services/http/local-storage-share.service.ts
@@ -1,15 +1,12 @@
 import { Injectable } from '@angular/core';
-import { NotificationService } from '../util/notification.service';
 
 @Injectable({
   providedIn: 'root'
 })
 export class LocalStorageShareService {
 
-  constructor(private notficiationService: NotificationService) {
+  constructor() {
     window.addEventListener('message', this.messageHandler, false);
-
-    this.notficiationService.show("hey");
   }
 
   messageHandler(event) {
-- 
GitLab