From 59c545bc51808d4be05c43088463a1baaf1c5c27 Mon Sep 17 00:00:00 2001 From: Darius Date: Fri, 21 Nov 2025 01:54:35 +0100 Subject: [PATCH] Generic Commit; Most likely a fix or small feature --- README.md | 2 +- src/components/Scanner.astro | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c741776..ffed7ad 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ function analyzeWeightLoss(product) { Feature Ideen: -- [ ] Allergen-Warnung +- [/] Allergen-Warnung - [ ] PWA Support (Offline-Modus) ## Bekannte Probleme diff --git a/src/components/Scanner.astro b/src/components/Scanner.astro index 95c63b0..f44bb83 100644 --- a/src/components/Scanner.astro +++ b/src/components/Scanner.astro @@ -622,7 +622,7 @@ body { placeholder="Or enter barcode manually" class="input" /> - @@ -920,8 +920,8 @@ import { analyzeProduct } from "../utils/productAnalysis"; }) } - document.getElementById('startButton').addEventListener('click', () => { - codeReader.decodeFromVideoDevice(selectedDeviceId, 'video', (result, err) => { + document.getElementById('start-scan-btn').addEventListener('click', () => { + codeReader.decodeFromVideoDevice(selectedDeviceId, 'scanner-video', (result, err) => { if (result) { const code = result.getText(); barcodeDisplay.textContent = code;