mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
set api urls for dev
This commit is contained in:
@@ -111,7 +111,14 @@ containerService.attachToWindow(window);
|
||||
|
||||
export function initFactory(): Function {
|
||||
return async () => {
|
||||
await environmentService.setUrlsFromStorage();
|
||||
if (platformUtilsService.isDev()) {
|
||||
await apiService.setUrls({
|
||||
base: null,
|
||||
api: 'https://api.bitwarden.com',
|
||||
identity: 'https://identity.bitwarden.com',
|
||||
});
|
||||
} // TODO: elseif self host
|
||||
|
||||
lockService.init(true);
|
||||
const locale = await storageService.get<string>(ConstantsService.localeKey);
|
||||
await i18nService.init(locale);
|
||||
|
||||
Reference in New Issue
Block a user