theWitcher commited on
Commit
6f0c882
·
1 Parent(s): 7ee40fb

Refined WhatsApp sharing message to include a custom title and URL for better user engagement.

Browse files
Files changed (1) hide show
  1. index.html +4 -3
index.html CHANGED
@@ -2059,12 +2059,13 @@ sagi test
2059
  )}&text=${encodeURIComponent(text)}`;
2060
  window.open(shareUrl, '_blank', 'width=600,height=400');
2061
  break;
2062
- case 'whatsapp':
2063
- const whatsappMessage = `${text}\n${url}\n${imageUrl}`;
2064
- shareUrl = `https://api.whatsapp.com/send?text=${encodeURIComponent(whatsappMessage)}`;
2065
  window.open(shareUrl, '_blank');
2066
  break;
2067
 
 
2068
  // case 'whatsapp':
2069
  // shareUrl = `https://api.whatsapp.com/send?text=${encodeURIComponent(
2070
  // text + ' ' + url
 
2059
  )}&text=${encodeURIComponent(text)}`;
2060
  window.open(shareUrl, '_blank', 'width=600,height=400');
2061
  break;
2062
+ case 'whatsapp':
2063
+ const message = `בדקו את הכלי ${title} מארגז הכלים של שגיא בר און\n\n${url}`;
2064
+ shareUrl = `https://api.whatsapp.com/send?text=${encodeURIComponent(message)}`;
2065
  window.open(shareUrl, '_blank');
2066
  break;
2067
 
2068
+
2069
  // case 'whatsapp':
2070
  // shareUrl = `https://api.whatsapp.com/send?text=${encodeURIComponent(
2071
  // text + ' ' + url