1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-08 09:43:42 +01:00

Merge pull request #1918 from bitwarden/fix-private-browsing

Don't start i18n service if in private mode
This commit is contained in:
Thomas Rittson 2021-07-01 08:04:38 +10:00 committed by GitHub
commit af1540267f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ export function initFactory(platformUtilsService: PlatformUtilsService, i18nServ
}, },
{ {
provide: LOCALE_ID, provide: LOCALE_ID,
useFactory: () => getBgService<I18nService>('i18nService')().translationLocale, useFactory: () => isPrivateMode ? null : getBgService<I18nService>('i18nService')().translationLocale,
deps: [], deps: [],
}, },
{ provide: PasswordRepromptServiceAbstraction, useValue: passwordRepromptService }, { provide: PasswordRepromptServiceAbstraction, useValue: passwordRepromptService },