Open kennethbrent opened 3 years ago
add this following code inside node_modules/vcards-js/lib/vCardFormatter.js if (vCard.socialUrls) { let index = 0; for (var key in vCard.socialUrls) { index++; if (vCard.socialUrls.hasOwnProperty(key) && vCard.socialUrls[key]) { formattedVCardString += "item" + index + ".URL:" + vCard.socialUrls[key] + nl(); formattedVCardString += "item" + index + ".X-ABLabel:" + key + nl(); formattedVCardString += "X-SOCIALPROFILE" + encodingPrefix + ";type=" + key + ":" + e(vCard.socialUrls[key]) + nl(); } } }
Can we add custom urls similar to how we add custom socials? Something like vcard.url[custom] = 'http://mycustomurl.com'. From what I can tell the only options right now are url and work url and in my scenario url is used by their website and 'work' is not the appropriate title or category for the additional url i want to add. Also, what if we had 3 urls?