Spaces:
Running
Running
Commit
·
6f0c882
1
Parent(s):
7ee40fb
Refined WhatsApp sharing message to include a custom title and URL for better user engagement.
Browse files- 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
|
2064 |
-
shareUrl = `https://api.whatsapp.com/send?text=${encodeURIComponent(
|
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
|