Rename variables for clarity and update browser pool management
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
const puppeteer = require('puppeteer');
|
||||
|
||||
const POOL_SIZE = parseInt(process.env.BROWSER_POOL_SIZE) || 5;
|
||||
const VIEWPORT_WIDTH = 3240;
|
||||
const VIEWPORT_HEIGHT = 3240;
|
||||
const VIEWPORT_WIDTH = 1500;
|
||||
const VIEWPORT_HEIGHT = 1500;
|
||||
|
||||
let browsers = [];
|
||||
let availableBrowsers = [];
|
||||
|
||||
Reference in New Issue
Block a user