From 7cae08a55bf48798e0a46cc4131d4b8425582bcd Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 20 Aug 2018 17:00:39 -0400 Subject: [PATCH] reinit notifications after setting urls --- src/services/environment.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/environment.service.ts b/src/services/environment.service.ts index a50909eb23..44b770673b 100644 --- a/src/services/environment.service.ts +++ b/src/services/environment.service.ts @@ -4,6 +4,7 @@ import { ConstantsService } from './constants.service'; import { ApiService } from '../abstractions/api.service'; import { EnvironmentService as EnvironmentServiceAbstraction } from '../abstractions/environment.service'; +import { NotificationsService } from '../abstractions/notifications.service'; import { StorageService } from '../abstractions/storage.service'; export class EnvironmentService implements EnvironmentServiceAbstraction { @@ -14,7 +15,8 @@ export class EnvironmentService implements EnvironmentServiceAbstraction { iconsUrl: string; notificationsUrl: string; - constructor(private apiService: ApiService, private storageService: StorageService) {} + constructor(private apiService: ApiService, private storageService: StorageService, + private notificationsService: NotificationsService) { } getWebVaultUrl(): string { if (this.webVaultUrl != null) { @@ -85,6 +87,7 @@ export class EnvironmentService implements EnvironmentServiceAbstraction { } await this.apiService.setUrls(envUrls); + this.notificationsService.init(this); return urls; }