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