dont await void methods

This commit is contained in:
Kyle Spearrin 2018-10-04 11:58:19 -04:00
parent 68ed8e51bd
commit 1d6d7b8aa8
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ export function initFactory(): Function {
environmentService.notificationsUrl = isDev ? 'http://localhost:61840' : environmentService.notificationsUrl = isDev ? 'http://localhost:61840' :
'https://notifications.bitwarden.com'; // window.location.origin + '/notifications'; 'https://notifications.bitwarden.com'; // window.location.origin + '/notifications';
} }
await apiService.setUrls({ apiService.setUrls({
base: isDev ? null : window.location.origin, base: isDev ? null : window.location.origin,
api: isDev ? 'http://localhost:4000' : null, api: isDev ? 'http://localhost:4000' : null,
identity: isDev ? 'http://localhost:33656' : null, identity: isDev ? 'http://localhost:33656' : null,
@ -151,7 +151,7 @@ export function initFactory(): Function {
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);
await authService.init(); authService.init();
const htmlEl = window.document.documentElement; const htmlEl = window.document.documentElement;
htmlEl.classList.add('locale_' + i18nService.translationLocale); htmlEl.classList.add('locale_' + i18nService.translationLocale);
let theme = await storageService.get<string>(ConstantsService.themeKey); let theme = await storageService.get<string>(ConstantsService.themeKey);