Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 6, 2022 17:20
Embed
What would you like to do?
Quagga.onDetected((data) => {
const codigo = data.codeResult.code;
if (codigo && !leido && destino) {
const url = destino + "?codigo=" + codigo;
leido = true;
window.location.href = url;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment