From 87cd96df61809a75e19600d3b65ce59fa38b1a1d Mon Sep 17 00:00:00 2001 From: Jose Varghese <34977009+josevarghese@users.noreply.github.com> Date: Thu, 1 Dec 2022 03:39:04 +0530 Subject: [PATCH] Added line break b/w WhatsApp title and URL --- public/js/super-web-share-public.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/super-web-share-public.js b/public/js/super-web-share-public.js index 15a7097..7eea09d 100644 --- a/public/js/super-web-share-public.js +++ b/public/js/super-web-share-public.js @@ -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]);