summaryrefslogtreecommitdiff
path: root/src/handlers/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/handlers/index.js')
-rw-r--r--src/handlers/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/handlers/index.js b/src/handlers/index.js
index 7101250..0f0ab67 100644
--- a/src/handlers/index.js
+++ b/src/handlers/index.js
@@ -30,6 +30,7 @@ const handleJobAsUser = async (job, browser, user) => {
));
await clickElementBySelector(page, 'input#join_button_input');
const conferencePage = await conferencePagePromise;
+ await page.close();
await attendConference(conferencePage, () => console.log(`Joined the conference at ${conferenceUrl}`));
@@ -47,7 +48,7 @@ const handleJob = async job => {
console.log('Participants: ', participants.map(participant => participant.username));
- const browser = await puppeteer.launch({ headless, args: ['--no-sandbox'] });
+ const browser = await puppeteer.launch({ headless, args: ['--no-sandbox', '--incognito'] });
try {
await Bluebird.map(participants, participant => handleJobAsUser(job, browser, participant));