mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
use old headless mode for better performance
This commit is contained in:
parent
75338f5927
commit
431c4cc098
1 changed files with 3 additions and 2 deletions
|
|
@ -52,10 +52,11 @@ export const getBrowser = async (): Promise<Browser> => {
|
|||
width: 1920,
|
||||
},
|
||||
executablePath: process.env.CHROMIUM_PATH,
|
||||
headless: process.env.LAUNCH_HEADLESS === 'true',
|
||||
headless: process.env.HEADLESS_MODE,
|
||||
timeout: 10_000, // 10 seconds
|
||||
dumpio: true, // show console logs in the terminal
|
||||
targetFilter: (target: Target) => target.type() !== 'other',
|
||||
targetFilter: (target: Target) =>
|
||||
target.type() !== 'other' || !!target.url(),
|
||||
})) as Browser
|
||||
|
||||
const version = await browserInstance.version()
|
||||
|
|
|
|||
Loading…
Reference in a new issue