diff options
Diffstat (limited to 'src/routes/+page.svelte')
| -rw-r--r-- | src/routes/+page.svelte | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 510607eb..3331b69b 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -33,27 +33,6 @@ const faqIDs = ['cost', 'compatibility', 'safety']; - let scan = async () => { - log('User clicked scan button'); - - try { - const ndef = new NDEFReader(); - await ndef.scan(); - log('> Scan started'); - - ndef.addEventListener('readingerror', () => { - log('Argh! Cannot read data from the NFC tag. Try another one?'); - }); - - ndef.addEventListener('reading', ({ message, serialNumber }) => { - log(`> Serial Number: ${serialNumber}`); - log(`> Records: (${message.records.length})`); - }); - } catch (error) { - log('Argh! ' + error); - } - }; - onMount(async () => { close(); @@ -72,7 +51,6 @@ <LandingHeader {howItWorks} {faq} {about} {user} /> <main class="space-y-40 py-20 md:py-32 lg:py-36 xl:py-40 px-5 md:px-0"> -<button on:click={scan} class="bg-black text-white mt-40 mx-auto p-8">Scan</button> <LandingHero {user} /> <LandingInfoCard image="lightning-qr" |
