fixed
This commit is contained in:
parent
6442270774
commit
d2ed2a5202
1 changed files with 2 additions and 23 deletions
|
@ -1,23 +1,2 @@
|
|||
<script lang="ts">
|
||||
import { page } from '$app/state';
|
||||
|
||||
let steamGiftKey = $state<string | null>(null);
|
||||
let isLegit = $state<boolean>(true);
|
||||
|
||||
$effect(() => {
|
||||
const bk = page.url.searchParams.get('bk');
|
||||
if (!bk) {
|
||||
isLegit = false;
|
||||
return;
|
||||
}
|
||||
steamGiftKey = atob(bk);
|
||||
});
|
||||
</script>
|
||||
|
||||
{#if isLegit}
|
||||
<h1>Congrats!</h1>
|
||||
<h2>Enjoy your gift <3</h2>
|
||||
<p>{steamGiftKey}</p>
|
||||
{:else}
|
||||
<h1>Sorry, this gift is not for you</h1>
|
||||
{/if}
|
||||
<h1>Congrats!</h1>
|
||||
<h2>Check your email at 19:30 :P</h2>
|
Loading…
Reference in a new issue