1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 10:43:35 +00:00

rename to "enable gravatars"

This commit is contained in:
Kyle Spearrin
2018-07-31 00:02:09 -04:00
parent ac33d2f37c
commit 8eb48e4311
6 changed files with 15 additions and 15 deletions

View File

@@ -45,8 +45,8 @@ export class AvatarComponent implements OnChanges, OnInit {
}
private async generate() {
const useGravatars = await this.stateService.get<boolean>('useGravatars');
if (useGravatars && this.email != null) {
const enableGravatars = await this.stateService.get<boolean>('enableGravatars');
if (enableGravatars && this.email != null) {
const hashBytes = await this.cryptoFunctionService.hash(this.email.toLowerCase().trim(), 'md5');
const hash = Utils.fromBufferToHex(hashBytes).toLowerCase();
this.src = 'https://www.gravatar.com/avatar/' + hash + '?s=' + this.size + '&r=pg&d=retro';