mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
adding flag to chrome
This commit is contained in:
parent
79ec298dc3
commit
a908f8ef88
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ const fs = require("fs");
|
|||
|
||||
function runPage(path){
|
||||
return new Promise(async (done, error) => {
|
||||
const browser = await puppeteer.launch();
|
||||
const browser = await puppeteer.launch({ args : ["--no-sandbox"] });
|
||||
const page = await browser.newPage();
|
||||
page.on("pageerror", e => error(e));
|
||||
await page.goto(`file://${path}`, { waitFor : "networkidle0" });
|
||||
|
|
Loading…
Reference in a new issue