QR fast game load

This commit is contained in:
Ota Prokopec 2023-03-14 19:02:05 +01:00
parent f24a7b8a76
commit 2eb444c8bd
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
{#if switched === 'scan'}
<div class="h-auto w-full justify-center flex flex-wrap flex-row">
<InfoBar class="mt-[40px] top-0 relative z-10" on:click={() => window.history.back()}>Scan our QR code or type in code to load the experience</InfoBar>
<QRscanner on:scan={(e) => (location.href = e.detail)}>
<QRscanner on:scan={(e) => navigate(`/${e.detail.text}`)}>
<div class="h-full w-full relative flex justify-center gap-4 flex-wrap flex-row items-center">
<ScanFrame />
</div>