Skip to content
Snippets Groups Projects
Commit 65100e36 authored by Philipp Sautner's avatar Philipp Sautner
Browse files

Deletes notificationService from localStorageService since it causes circular dependencies

parent 23dd3c6a
No related merge requests found
......@@ -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,
......
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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment