From 96d46e96c2847c6ff92b93cee1545e823a1d3668 Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Thu, 23 Dec 2021 14:52:42 +0100 Subject: [PATCH] Fix svelte error Signed-off-by: Gregoire Parant --- front/src/Components/Modal/ShareLinkMapModal.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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}