This commit is contained in:
Lamp 2020-05-28 21:51:40 -07:00 committed by GitHub
parent 43138e2799
commit 2746e7dd24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -7,11 +7,11 @@ global.screenshotter = {
var page = await browser.newPage();
await page.setViewport({ width: 1440, height: 900 });
try {
await page.goto('http://www.multiplayerpiano.com/lobby');
await page.evaluate(function () {
await page.goto('https://www.multiplayerpiano.com/lobby');
try {await page.evaluate(function () {
document.getElementById('modal').click();
MPP.client.uri = "ws://530s.gq/mpp-proxy";
});
MPP.client.uri = "wss://mpp_proxy.qonq.gq";
});} catch(e) {console.error(e.message)}
await new Promise(resolve => setTimeout(resolve, 5000));
let screenshot = await page.screenshot({ type: 'png' });
let filename = `Screenshot of www.multiplayerpiano.com/lobby @ ${new Date().toISOString()}.png`;