1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-09 09:51:02 +01: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

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

View File

@ -111,7 +111,14 @@ containerService.attachToWindow(window);
export function initFactory(): Function { export function initFactory(): Function {
return async () => { 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); lockService.init(true);
const locale = await storageService.get<string>(ConstantsService.localeKey); const locale = await storageService.get<string>(ConstantsService.localeKey);
await i18nService.init(locale); await i18nService.init(locale);