Skip to content

Commit

Permalink
added args to browser
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-hanneforth committed Jun 14, 2021
1 parent b1f1a2c commit ff5a9e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ class InstagramBot {
* @returns {Promise<InstagramBot>}
*/
static async launch(headless = false, session = {}) {
const browser = await misc.launchBrowser({ headless });
const args = ["--no-sandbox", "--disable-setuid-sandbox"];
const browser = await misc.launchBrowser({ headless, args });
const cookies = session.cookies ? session.cookies : [];
const page = await misc.newPage(browser, "en", cookies);

Expand Down

0 comments on commit ff5a9e1

Please sign in to comment.