From 4d87c3b43df4bf90a867cd96a58cedceafa7e5e1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 19 Mar 2025 18:36:22 -0700 Subject: prompt to scan --- src/routes/(app)/scan/+page.svelte | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src') diff --git a/src/routes/(app)/scan/+page.svelte b/src/routes/(app)/scan/+page.svelte index 88a76fbb..a7c2f1b4 100644 --- a/src/routes/(app)/scan/+page.svelte +++ b/src/routes/(app)/scan/+page.svelte @@ -155,16 +155,6 @@ isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent); barcodeDetector = new BarcodeDetector({ formats: ["qr_code"] }); await getCameraDevices(); - - // For non-iOS devices, auto-start scanning. - if (!isIOS) { - await startCamera($camera); - videoEl.addEventListener("loadeddata", () => { - canvasEl.width = videoEl.videoWidth; - canvasEl.height = videoEl.videoHeight; - scanLoop(); - }); - } }; onMount(initialize); @@ -200,7 +190,7 @@ - {#if isIOS && !scanningStarted} + {#if !scanningStarted}