1
0
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:
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

Submodule jslib updated: 322dcf76ae...dc01f0701e

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