Correction d'un bug qui empêchait le scan de se lancer.

This commit is contained in:
antux18 2023-09-02 00:37:04 -04:00
parent 357df6fbc2
commit b62364f790

View File

@ -63,7 +63,7 @@ camList.addEventListener("change", event => {
}); });
// Démarrage du scan : // Démarrage du scan :
document.querySelector("button").addEventListener("click", () => { document.querySelector("p + button").addEventListener("click", () => {
scanner.start().then(() => { scanner.start().then(() => {
QrScanner.listCameras(true).then(cameras => cameras.forEach(camera => QrScanner.listCameras(true).then(cameras => cameras.forEach(camera =>
{ {