From 9b7a1c776069513bd90f507e26c05426d82a5371 Mon Sep 17 00:00:00 2001 From: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com> Date: Thu, 27 May 2021 14:28:42 -0700 Subject: [PATCH] adding the self host check back in (#997) --- src/app/services/services.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/services.module.ts b/src/app/services/services.module.ts index 708e3c137b7..eb11b91d14f 100644 --- a/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts @@ -145,7 +145,7 @@ export function initFactory(): Function { return async () => { await (storageService as HtmlStorageService).init(); - if (process.env.ENV !== 'production') { + if (process.env.ENV !== 'production' || platformUtilsService.isSelfHost()) { environmentService.baseUrl = window.location.origin; } else { environmentService.notificationsUrl = 'https://notifications.bitwarden.com';