Commit 1fa2b523 authored by Maxime's avatar Maxime
Browse files

sharetext content

parent 269ad0d5
......@@ -18,7 +18,7 @@
function shareCampaign(plateform){
const sharePlateform = plateform;
console.log(plateform);
const shareText = "Participe à la campagne citoyenne pour légaliser le Cannabis en France !";
const shareText = "J'ai participé à la campagne citoyenne pour légaliser le Cannabis en France, à toi !";
//set home url
let HomeUrl = location.href ;
//remove anchor in URL, if there's one
......@@ -35,7 +35,7 @@
+ encodeURI(fbsummary)
case "facebook":
sharedMessage = facebookUrl + encodeURI("https://legalisons.free-the-tree.org/") + "&quote="+encodeURI(shareText);
sharedMessage = facebookUrl + encodeURI(HomeUrl) + "&quote="+encodeURI(shareText);
window.open(sharedMessage,'_blank');
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment