Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmanNik committed Jul 31, 2024
1 parent 8d088c8 commit ea5e6dd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/routes/integrations/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import type { Integration } from './+page';
import { goto } from '$app/navigation';
import { onDestroy, onMount } from 'svelte';
import { browser } from '$app/environment';
export let data;
Expand Down Expand Up @@ -40,9 +41,13 @@
// categories
let activeCategory: string | null = null;
onMount(() => document.documentElement.setAttribute('data-scroll-smooth', ''));
onMount(() => {
if (browser) document.documentElement.setAttribute('data-scroll-smooth', '');
});
onDestroy(() => document.documentElement.removeAttribute('data-scroll-smooth'));
onDestroy(() => {
if (browser) document.documentElement.removeAttribute('data-scroll-smooth');
});
</script>

<svelte:head>
Expand Down

0 comments on commit ea5e6dd

Please sign in to comment.