Skip to content

Commit

Permalink
Update rt-html-abs.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ledangtrung committed Dec 9, 2024
1 parent 8f41d14 commit f77e5ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/rt-html-abs.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ function openChat(element) {
App.callActionButton(json);
}

window.downloadVCard = function() {
// Create namespace if it doesn't exist
window.rtlib = window.rtlib || {};

// Add function to namespace
rtlib.downloadVCard = function() {
const vCardContent = document.getElementById('vcardTemplate').textContent;

const fnMatch = vCardContent.match(/FN;CHARSET=utf-8:(.*)/);
Expand Down

0 comments on commit f77e5ee

Please sign in to comment.