Merge pull request #1322 from Hinton/feature/biometric-jslib

Support biometric changes in jslib
This commit is contained in:
Chad Scharf 2020-07-29 16:54:45 -04:00 committed by GitHub
commit 728d181fff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -67,7 +67,7 @@ export const authService = new AuthService(getBgService<CryptoService>('cryptoSe
getBgService<ApiService>('apiService')(), getBgService<UserService>('userService')(),
getBgService<TokenService>('tokenService')(), getBgService<AppIdService>('appIdService')(),
getBgService<I18nService>('i18nService')(), getBgService<PlatformUtilsService>('platformUtilsService')(),
messagingService);
messagingService, getBgService<VaultTimeoutService>('vaultTimeoutService')());
export const searchService = new PopupSearchService(getBgService<SearchService>('searchService')(),
getBgService<CipherService>('cipherService')(), getBgService<PlatformUtilsService>('platformUtilsService')());

View File

@ -287,6 +287,14 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
});
}
supportsBiometric() {
return Promise.resolve(false);
}
authenticateBiometric() {
return Promise.resolve(false);
}
private sidebarViewName(): string {
if ((window as any).chrome.sidebarAction && this.isFirefox()) {
return 'sidebar';