Skip to content

Commit

Permalink
Merge pull request #19 from superwebshare/whatsapp-line-break
Browse files Browse the repository at this point in the history
Added line break b/w WhatsApp title and URL
  • Loading branch information
josevarghese authored Dec 3, 2022
2 parents 6c507f4 + 87cd96d commit 35334b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/super-web-share-public.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ DOMReady(function() {
'facebook':`https://www.facebook.com/sharer/sharer.php?u=${encodeURI(meta_url)}${encodeURI(moreD)}`,
'twitter':`http://twitter.com/share?text=${encodeURI(meta_title)}&url=${encodeURI(meta_url)}${encodeURI(moreD)}`,
'linkedin':`https://www.linkedin.com/sharing/share-offsite?url=${encodeURI(meta_url)}${encodeURI(moreD)}`,
'whatsapp':`https://api.whatsapp.com/send?text=${encodeURI(meta_url)}${encodeURI(moreD)}`,
'whatsapp':`https://api.whatsapp.com/send?text=${encodeURI(meta_title)}${encodeURI('\n\r')}${encodeURI(meta_url)}${encodeURI(moreD)}`,
}
if( 'whatsapp' == type ){
window.open(urlParams[type]);
Expand Down

0 comments on commit 35334b6

Please sign in to comment.