diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/scan/+page.svelte | 12 |
1 files changed, 1 insertions, 11 deletions
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 @@ </select> </div> <!-- For iOS users, show a "Start Scanning" button if scanning hasn't begun --> - {#if isIOS && !scanningStarted} + {#if !scanningStarted} <div class="flex justify-center"> <button class="btn !w-auto" onclick={startScanning}> Start Scanning |
