Merge pull request #1709 from vaidas-lungis/vaidas-lungis-patch-1

Reject if response property is null
main
Elbert Alias 7 years ago committed by GitHub
commit 487b595d54

@ -61,6 +61,10 @@ const driver = {
browser.visit(url, error => { browser.visit(url, error => {
wappalyzer.driver.document = browser.document; wappalyzer.driver.document = browser.document;
if ( !browser.resources['0'].response ) {
return reject('No response from server');
}
const headers = {}; const headers = {};
browser.resources['0'].response.headers._headers.forEach(header => { browser.resources['0'].response.headers._headers.forEach(header => {

Loading…
Cancel
Save