Skip to content

Commit

Permalink
#1664: fix (test);
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Sep 14, 2023
1 parent e28984e commit c8821c9
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -201,20 +201,20 @@
/**
* TODO: DOC:
*/
$: if (browser && (isRouteCompetitions || isProfilePage))
{
const helpdesk: HTMLElement = document?.getElementsByClassName('crisp-client')?.[0] as unknown as HTMLElement;
if (helpdesk != undefined)
helpdesk.style.display = "unset";
;
}
else if (browser && !isRouteCompetitions && !isProfilePage)
{
const helpdesk: HTMLElement = document?.getElementsByClassName('crisp-client')?.[0] as unknown as HTMLElement;
if (helpdesk != undefined)
helpdesk.style.display = "none";
;
}
// $: if (browser && (isRouteCompetitions || isProfilePage))
// {
// const helpdesk: HTMLElement = document?.getElementsByClassName('crisp-client')?.[0] as unknown as HTMLElement;
// if (helpdesk != undefined)
// helpdesk.style.display = "unset";
// ;
// }
// else if (browser && !isRouteCompetitions && !isProfilePage)
// {
// const helpdesk: HTMLElement = document?.getElementsByClassName('crisp-client')?.[0] as unknown as HTMLElement;
// if (helpdesk != undefined)
// helpdesk.style.display = "none";
// ;
// }
// #endregion ➤ 🔥 REACTIVIY [SVELTE]
Expand Down

0 comments on commit c8821c9

Please sign in to comment.