oop that wont work

This commit is contained in:
Lamp 2019-03-22 21:38:37 +00:00
parent 7114896ebe
commit 3549c63a08
1 changed files with 3 additions and 3 deletions

View File

@ -19,10 +19,10 @@ global.screenshotter = {
} }
try { try {
await page.goto('http://ourworldofpixels.com'); await page.goto('http://ourworldofpixels.com');
await page.evaluate(function () { await page.evaluate(function (owopcaptcha) {
localStorage.owopcaptcha = require('./config').owop_captcha_password; localStorage.owopcaptcha = owopcaptcha;
OWOP.camera.zoom = 1; OWOP.camera.zoom = 1;
}); }, require('./config').owop_captcha_password);
await new Promise(resolve => setTimeout(resolve, 2000)); await new Promise(resolve => setTimeout(resolve, 2000));
await page.evaluate(function () { await page.evaluate(function () {
for (let butt of document.getElementsByTagName('button')) { for (let butt of document.getElementsByTagName('button')) {