diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-09-24 15:27:29 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-09-25 14:52:44 +0200 |
commit | 145babb087c1d827e2049a05dfcaa6535fb8c3ee (patch) | |
tree | 13cc4b943a386d52b8062e9e665f117a447f8490 /src/models/contact.js | |
parent | 7b339ebdc3fc11641d10a15f99899f0c1793828e (diff) |
Add addressbook dav
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/models/contact.js')
-rw-r--r-- | src/models/contact.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/models/contact.js b/src/models/contact.js index e23fffff..9dc6ced5 100644 --- a/src/models/contact.js +++ b/src/models/contact.js @@ -232,9 +232,11 @@ export default class Contact { } if (this.vCard.hasProperty('n')) { // reverse and join - return this.vCard.getFirstPropertyValue('n').filter(function(part) { - return part - }).join(' ') + return this.vCard.getFirstPropertyValue('n') + .filter(function(part) { + return part + }) + .join(' ') } return null } |