We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QRCode.toDataURL(dataForQRCode) .then(url => { console.log(url) }) .catch(err => { console.error('qrcode error', err) }) // other piece of code
The other piece of code gets executed before the callback of QRCode . How can i make sure it executes only after the qrcode url is returned
other piece of code
QRCode
The text was updated successfully, but these errors were encountered:
await
async
(async () => { try { const url = await QRCode.toDataURL(dataForQRCode); // other piece of code } catch (e) { console.error(e); } })();
Sorry, something went wrong.
No branches or pull requests
The
other piece of code
gets executed before the callback ofQRCode
. How can i make sure it executes only after the qrcode url is returnedThe text was updated successfully, but these errors were encountered: