<meta charset="utf-8" />
<meta lang="en" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
+ <script
+ type="module"
+ src="https://fastly.jsdelivr.net/npm/barcode-detector@2/dist/es/side-effects.min.js"></script>
<script>
let libnemo, css
+ const barcodeDetector = new BarcodeDetector({
+ formats: ["qr_code"],
+ })
+ const imageFile = await fetch(
+ "https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=Hello%20world!",
+ ).then(resp => resp.blob())
+ barcodeDetector.detect(imageFile).then(console.log)
const observer = new MutationObserver((mutations) => {
for (const mutation of mutations) {