Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 6, 2022 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/86775af0edd0dd7e63563539e949a035 to your computer and use it in GitHub Desktop.
Save parzibyte/86775af0edd0dd7e63563539e949a035 to your computer and use it in GitHub Desktop.
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