Skip to content

Commit

Permalink
test: #1231; splash google-vot check;
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed May 2, 2023
1 parent 379b2c0 commit 4acbf4d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/lib/components/_Splash_screen.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,21 @@
[TypeScript Written]
=================== -->
<script lang="ts">
import { onMount } from 'svelte';
import { browser } from '$app/environment';
import { onMount } from 'svelte';
let show: boolean = true;
if (browser)
{
const isGoogleBot = /bot|google/i.test(navigator.userAgent)
show = !isGoogleBot
if (isGoogleBot)
{
alert("IS GOOGLE");
}
}
/**
* @summary [LIFECYCLE]
* @description triggers events onLoad of the
Expand Down

0 comments on commit 4acbf4d

Please sign in to comment.