Skip to content

Instantly share code, notes, and snippets.

@shriyaRam
Created June 22, 2020 14:22
Show Gist options
  • Save shriyaRam/2c7dd2cc030b8b66ee502cac45a9765a to your computer and use it in GitHub Desktop.
Save shriyaRam/2c7dd2cc030b8b66ee502cac45a9765a to your computer and use it in GitHub Desktop.
let ans="empty";
app.post('/thank', urlencodedParser, async function (req, res){
var reply='';
async function main(){
const browser = await puppeteer.launch({
headless: true,
// slowMo: 0, // slow down by 250ms
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
const page = await browser.newPage();
await page.setViewport({
width: 1299,
height: 637,
deviceScaleFactor: 1,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment