1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

adding the self host check back in (#997)

This commit is contained in:
Joseph Flinn 2021-05-27 14:28:42 -07:00 committed by GitHub
parent da0df3a73b
commit 9b7a1c7760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ export function initFactory(): Function {
return async () => { return async () => {
await (storageService as HtmlStorageService).init(); await (storageService as HtmlStorageService).init();
if (process.env.ENV !== 'production') { if (process.env.ENV !== 'production' || platformUtilsService.isSelfHost()) {
environmentService.baseUrl = window.location.origin; environmentService.baseUrl = window.location.origin;
} else { } else {
environmentService.notificationsUrl = 'https://notifications.bitwarden.com'; environmentService.notificationsUrl = 'https://notifications.bitwarden.com';