Rename variables for clarity and update browser pool management
This commit is contained in:
parent
2245b31af6
commit
635f8b2001
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
const puppeteer = require('puppeteer');
|
const puppeteer = require('puppeteer');
|
||||||
|
|
||||||
const POOL_SIZE = parseInt(process.env.BROWSER_POOL_SIZE) || 5;
|
const POOL_SIZE = parseInt(process.env.BROWSER_POOL_SIZE) || 5;
|
||||||
const VIEWPORT_WIDTH = 3240;
|
const VIEWPORT_WIDTH = 1500;
|
||||||
const VIEWPORT_HEIGHT = 3240;
|
const VIEWPORT_HEIGHT = 1500;
|
||||||
|
|
||||||
let browsers = [];
|
let browsers = [];
|
||||||
let availableBrowsers = [];
|
let availableBrowsers = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue