Skip to content

Commit

Permalink
Added line break b/w WhatsApp title and URL
Browse files Browse the repository at this point in the history
  • Loading branch information
josevarghese authored Nov 30, 2022
1 parent 5be8bad commit 87cd96d
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 @@ -132,7 +132,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 87cd96d

Please sign in to comment.