set api urls for dev

This commit is contained in:
Kyle Spearrin 2018-06-21 21:32:17 -04:00
parent aed5db0a8c
commit 51efa59728
2 changed files with 9 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 322dcf76ae7de4c7633d0828ec8f062ee856e5c4
Subproject commit dc01f0701ea7905d2da7c3babb19870e212d2337

View File

@ -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);