From 3549c63a0861f9c12361a8355a229d644969e702 Mon Sep 17 00:00:00 2001 From: Lamp Date: Fri, 22 Mar 2019 21:38:37 +0000 Subject: [PATCH] oop that wont work --- src/screenshotter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screenshotter.js b/src/screenshotter.js index 295b978..bc2bfe6 100755 --- a/src/screenshotter.js +++ b/src/screenshotter.js @@ -19,10 +19,10 @@ global.screenshotter = { } try { await page.goto('http://ourworldofpixels.com'); - await page.evaluate(function () { - localStorage.owopcaptcha = require('./config').owop_captcha_password; + await page.evaluate(function (owopcaptcha) { + localStorage.owopcaptcha = owopcaptcha; OWOP.camera.zoom = 1; - }); + }, require('./config').owop_captcha_password); await new Promise(resolve => setTimeout(resolve, 2000)); await page.evaluate(function () { for (let butt of document.getElementsByTagName('button')) {