diff --git a/src/lib/components/_Splash_screen.svelte b/src/lib/components/_Splash_screen.svelte index 8cdbfd62f..ba03a81b0 100644 --- a/src/lib/components/_Splash_screen.svelte +++ b/src/lib/components/_Splash_screen.svelte @@ -7,15 +7,12 @@ import { onMount } from 'svelte'; let show: boolean = true; + let isGoogleBot: boolean = false; if (browser) { - const isGoogleBot = /bot|google/i.test(navigator.userAgent) + isGoogleBot = /bot|google/i.test(navigator.userAgent) show = !isGoogleBot - if (isGoogleBot) - { - alert("IS GOOGLE"); - } } /** @@ -48,6 +45,10 @@ COMPONENT HTML =================== --> +

+ {isGoogleBot} +

+ {#if show}