Merge pull request #1522 from thecodingmachine/HotFixContactPage

Fix share link for website
This commit is contained in:
grégoire parant
2021-10-15 15:44:44 +02:00
committed by GitHub
@@ -51,6 +51,7 @@
await navigator.share(shareData); await navigator.share(shareData);
} catch (err) { } catch (err) {
console.error('Error: ' + err); console.error('Error: ' + err);
copyLink();
} }
} }
</script> </script>
@@ -63,6 +64,7 @@
</section> </section>
<section class="is-mobile"> <section class="is-mobile">
<h3>Share the link of the room !</h3> <h3>Share the link of the room !</h3>
<input type="hidden" readonly bind:this={HTMLShareLink} value={location.toString()}>
<button type="button" class="nes-btn is-primary" on:click={shareLink}>Share</button> <button type="button" class="nes-btn is-primary" on:click={shareLink}>Share</button>
</section> </section>
<h2>Information on the map</h2> <h2>Information on the map</h2>