Skip to content

Commit

Permalink
issue: #1231 (patch);
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Apr 26, 2023
1 parent 00ba220 commit b7c16c0
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/lib/components/_Splash_screen.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,10 @@
[TypeScript Written]
=================== -->
<script lang="ts">
import { browser } from '$app/environment';
import { onMount } from 'svelte';
let show: boolean = true;
$: if (browser)
{
document.documentElement.classList.remove(
'googlebot-override'
);
document.body.classList.remove(
'googlebot-override'
);
}
/**
* @summary [LIFECYCLE]
* @description triggers events onLoad of the
Expand All @@ -26,6 +15,12 @@
onMount(async () => {
setTimeout(async () => {
show = false;
document.documentElement.classList.remove(
'googlebot-override'
);
document.body.classList.remove(
'googlebot-override'
);
document.documentElement.classList.remove(
'no-scrollbar'
);
Expand Down

0 comments on commit b7c16c0

Please sign in to comment.