fix: cleanup init

This commit is contained in:
David Skewis 2024-12-17 13:13:24 +00:00
parent 87afc7310b
commit a3d6006a03
3 changed files with 3 additions and 2 deletions

View File

@ -238,8 +238,6 @@ export class AppComponent implements OnDestroy {
this.document.documentElement.lang = language.lang;
this.language = language.lang;
});
this.posthog.init();
}
// TODO implement Console storage

View File

@ -74,6 +74,7 @@ import { StorageService } from './services/storage.service';
import { ThemeService } from './services/theme.service';
import { ToastService } from './services/toast.service';
import { LanguagesService } from './services/languages.service';
import { PosthogService } from './services/posthog.service';
registerLocaleData(localeDe);
i18nIsoCountries.registerLocale(require('i18n-iso-countries/langs/de.json'));
@ -242,6 +243,7 @@ const authConfig: AuthConfig = {
ToastService,
NavigationService,
LanguagesService,
PosthogService,
{ provide: 'windowObject', useValue: window },
],
bootstrap: [AppComponent],

View File

@ -14,6 +14,7 @@ export class PosthogService {
this.envService.env.subscribe((env) => {
this.posthogToken = env.posthog_token;
this.posthogUrl = env.posthog_url;
this.init();
});
}