Skip to content

Commit

Permalink
fix(formatter): use HOME where home should be used
Browse files Browse the repository at this point in the history
fixes url parameter `home` beeing generated as `WORK`

mention #433
  • Loading branch information
DanielHabenicht authored Feb 1, 2021
1 parent 1444eb5 commit da66ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-vcard/src/lib/ngx-vcard.formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export class VCardFormatter {
if (vCard.url) {
let urlNotSet = true;
if (hasProp(vCard.url, 'home')) {
formattedVCardString += 'URL;type=WORK' + encodingPrefix + ':' + e((vCard.url as { home: string }).home) + nl();
formattedVCardString += 'URL;type=HOME' + encodingPrefix + ':' + e((vCard.url as { home: string }).home) + nl();
urlNotSet = false;
}

Expand Down

0 comments on commit da66ea4

Please sign in to comment.