mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Make headless = false in local testing
This commit is contained in:
parent
9dccd12be1
commit
8bdbd86e97
2 changed files with 2 additions and 2 deletions
|
|
@ -213,7 +213,7 @@ const getTweetIds = async (
|
|||
|
||||
const browser = await puppeteer.launch({
|
||||
executablePath: process.env.CHROMIUM_PATH,
|
||||
headless: !!process.env.LAUNCH_HEADLESS,
|
||||
headless: process.env.LAUNCH_HEADLESS === 'true',
|
||||
defaultViewport: {
|
||||
width,
|
||||
height,
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ const getBrowserPromise = (async () => {
|
|||
].filter((item) => !!item),
|
||||
defaultViewport: { height: 1080, width: 1920 },
|
||||
executablePath: process.env.CHROMIUM_PATH,
|
||||
headless: !!process.env.LAUNCH_HEADLESS,
|
||||
headless: process.env.LAUNCH_HEADLESS === 'true',
|
||||
timeout: 120000, // 2 minutes
|
||||
});
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue