Skip to content

Commit

Permalink
Update whatsapp.js
Browse files Browse the repository at this point in the history
  • Loading branch information
norld authored May 25, 2024
1 parent 7b8ed07 commit 823c3ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/whatsapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ imgButton.src = "https://cdn.jsdelivr.net/gh/norld/[email protected]/dist/
imgButton.id = "whatsapp-button";
imgButton.style.width = "24px";
imgButton.style.height = "24px";
imgButton.alt = "contact-whatsapp";

const spanButton = document.createElement("span");
spanButton.innerText = "WhatsApp";
Expand All @@ -54,4 +55,4 @@ flexContainer.appendChild(spanButton);

flexContainer.addEventListener("click", function() {
window.location.href = "https://api.whatsapp.com/send?phone="+textContentNumber+"&text="+textContentText;
});
});

0 comments on commit 823c3ba

Please sign in to comment.