diff --git a/front/src/Components/Modal/ShareLinkMapModal.svelte b/front/src/Components/Modal/ShareLinkMapModal.svelte index 5f84e791..25cde5bd 100644 --- a/front/src/Components/Modal/ShareLinkMapModal.svelte +++ b/front/src/Components/Modal/ShareLinkMapModal.svelte @@ -7,9 +7,9 @@ } const myNavigator : ExtNavigator = window.navigator; - const haveNavigatorSharingFeature = myNavigator && myNavigator.canShare && myNavigator.share; + const haveNavigatorSharingFeature:boolean = myNavigator && myNavigator.canShare != null && myNavigator.share != null; - let copied = false; + let copied:boolean = false; function copyLink() { try { @@ -48,14 +48,14 @@

Share the link of the room!

- {#if $haveNavigatorSharingFeature} + {#if haveNavigatorSharingFeature} {:else} {/if} - {#if $copied} + {#if copied}

Copied!

{/if}