set proper api url
This commit is contained in:
parent
51efa59728
commit
cb1a62ee27
|
@ -111,13 +111,12 @@ containerService.attachToWindow(window);
|
|||
|
||||
export function initFactory(): Function {
|
||||
return async () => {
|
||||
if (platformUtilsService.isDev()) {
|
||||
const isDev = platformUtilsService.isDev();
|
||||
await apiService.setUrls({
|
||||
base: null,
|
||||
api: 'https://api.bitwarden.com',
|
||||
identity: 'https://identity.bitwarden.com',
|
||||
base: isDev ? null : window.location.origin,
|
||||
api: isDev ? 'https://api.bitwarden.com' : null,
|
||||
identity: isDev ? 'https://identity.bitwarden.com' : null,
|
||||
});
|
||||
} // TODO: elseif self host
|
||||
|
||||
lockService.init(true);
|
||||
const locale = await storageService.get<string>(ConstantsService.localeKey);
|
||||
|
|
Loading…
Reference in New Issue