Commit 8bb1cd65 authored by Adrien Pavie's avatar Adrien Pavie
Browse files

Fix hidden button due to ublock filters

parent 6f4a1bd3
......@@ -131,7 +131,7 @@
</div>
<div class="d-flex flex-nowrap">
<a id="share-email" href="" role="button" class="btn btn-primary flex-grow-1 mr-1">
<a id="share-courriel" href="" role="button" class="btn btn-primary flex-grow-1 mr-1">
<i class="fa fa-envelope" aria-hidden="true"></i> By email
</a>
<a id="share-sms" href="" role="button" class="btn btn-primary flex-grow-1 ml-1">
......
......@@ -397,7 +397,7 @@ function setColor(color) {
*/
function updateSharingLinks() {
document.getElementById("share-url").value = location.href;
document.getElementById("share-email").href = `mailto:?subject=${encodeURIComponent("Sketch map made with Gribrouillon")}&body=${encodeURIComponent("Link : "+location.href)}`;
document.getElementById("share-courriel").href = `mailto:?subject=${encodeURIComponent("Sketch map made with Gribrouillon")}&body=${encodeURIComponent("Link : "+location.href)}`;
document.getElementById("share-sms").href = `sms:?body=${encodeURIComponent("Sketch map made with Gribrouillon : "+location.href)}`;
document.getElementById("share-qrcode").innerHTML = new QRCode({
content: location.href,
......
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