Fix uncaught page crash issue in NPM+Puppeteer

main
Elbert Alias 5 years ago
parent 37a2a590c9
commit 88092f9a34

@ -90,12 +90,8 @@ class PuppeteerBrowser extends Browser {
page.setDefaultTimeout(this.options.maxWait); page.setDefaultTimeout(this.options.maxWait);
await page.setRequestInterception(true);
page.on('error', reject); page.on('error', reject);
page.on('request', request => request.continue());
page.on('response', (response) => { page.on('response', (response) => {
if (response.status() === 301 || response.status() === 302) { if (response.status() === 301 || response.status() === 302) {
return; return;

@ -2,7 +2,7 @@
"name": "wappalyzer", "name": "wappalyzer",
"description": "Uncovers the technologies used on websites", "description": "Uncovers the technologies used on websites",
"homepage": "https://github.com/AliasIO/Wappalyzer", "homepage": "https://github.com/AliasIO/Wappalyzer",
"version": "5.9.16", "version": "5.9.17",
"author": "Elbert Alias", "author": "Elbert Alias",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {

Loading…
Cancel
Save