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
Please guide me to use in promise.
The text was updated successfully, but these errors were encountered:
Hey Here is what I did :
const webshotPromise = (dom, out, opt) => new Promise((resolve, reject) => { webshot(dom, out, opt, e => !e ? resolve('screenshot taken') : reject(e) ) })
Sorry, something went wrong.
that works wonderfully! Thank you. I modified it for async/await for use in graphql.
const webshotPromise = async (html, screenPath, options) => new Promise((resolve, reject) => { webshot( html, screenPath, options, e => (!e ? resolve(screenPath) : reject(e)) ); }); const finishedImage = await webshotPromise(html, screenPath, optionsLarge);
No branches or pull requests
Please guide me to use in promise.
The text was updated successfully, but these errors were encountered: