From 251b9a72c9b4eeb8df2f0dc968406afeb74c9277 Mon Sep 17 00:00:00 2001 From: Lamp Date: Fri, 11 May 2018 23:38:37 -0700 Subject: [PATCH] FOK --- src/screenshotter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screenshotter.js b/src/screenshotter.js index fde13e3..0598e34 100755 --- a/src/screenshotter.js +++ b/src/screenshotter.js @@ -6,7 +6,7 @@ global.screenshotter = { var page = await browser.newPage(); await page.setViewport({width: 1440, height: 900}); await page.goto('http://www.multiplayerpiano.com/lobby'); - await page.evaluate(function(){ document.getElementById('modal').click() } }); + await page.evaluate(function(){ document.getElementById('modal').click() }); await new Promise(resolve => setTimeout(resolve, 5000)); var screenshot = await page.screenshot({type: 'png'}); var filename = `Screenshot of www.multiplayerpiano.com/lobby @ ${new Date().toISOString()}.png`;