Skip to content

Commit

Permalink
test: #1231; splash google-bot check;
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed May 2, 2023
1 parent de2056e commit 8b0e49f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/components/_Splash_screen.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
let show: boolean = true;
let isGoogleBot: boolean = false;
if (browser)
$: if (browser)
{
isGoogleBot = /bot|google/i.test(navigator.userAgent)
show = !isGoogleBot
Expand Down Expand Up @@ -50,6 +50,12 @@
color: red;
font-size: 50px;
margin-bottom: 50px;
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
z-index: 10000000;
">
{isGoogleBot}
</h1>
Expand Down

0 comments on commit 8b0e49f

Please sign in to comment.