modified puppeteer launch arguments

This commit is contained in:
Hazem Krimi
2020-05-14 11:18:27 +01:00
parent 470dfaf187
commit 154b966e85
+1 -1
View File
@@ -107,7 +107,7 @@ module.exports = class Play extends Command {
}
} else if (query.match(/^(http(s)?:\/\/)?((w){3}.)?facebook?(\.com)?\/\S+\/videos\/\S+/)) {
const link = query.match(/^(http(s)?:\/\/)?((w){3}.)?facebook?(\.com)?\/\S+\/videos\/\S+/)[0];
const browser = await puppeteer.launch({ timeout: 0 });
const browser = await puppeteer.launch({ timeout: 0, args: ['--no-sandbox'] });
const page = await browser.newPage();
page.setDefaultNavigationTimeout(0);