Remove browser args

This commit is contained in:
Daniel Imms
2020-02-18 07:47:01 -08:00
parent 9a1c7953e7
commit a18bac7380
12 changed files with 12 additions and 24 deletions
@@ -900,8 +900,7 @@ async function getCellColor(col: number, row: number): Promise<number[]> {
async function setupBrowser(options: ITerminalOptions = { rendererType: 'dom' }): Promise<void> {
const browserType = getBrowserType();
browser = await browserType.launch({ dumpio: true,
headless: process.argv.indexOf('--headless') !== -1,
args: [`--window-size=${width},${height}`, `--no-sandbox`]
headless: process.argv.indexOf('--headless') !== -1
});
page = await (await browser.newContext()).newPage();
await page.setViewportSize({ width, height });