mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-09 08:23:51 +00:00
fix: cleanup init
This commit is contained in:
parent
87afc7310b
commit
a3d6006a03
@ -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
|
||||
|
@ -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],
|
||||
|
@ -14,6 +14,7 @@ export class PosthogService {
|
||||
this.envService.env.subscribe((env) => {
|
||||
this.posthogToken = env.posthog_token;
|
||||
this.posthogUrl = env.posthog_url;
|
||||
this.init();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user