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')) {