-
-
Save parzibyte/86775af0edd0dd7e63563539e949a035 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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