From 8db38ca79ad2545b0eeb31f201a0cdb8b5279c8f Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Mon, 13 Nov 2017 13:44:17 +1100 Subject: [PATCH] Correctly check server response in NPM driver --- src/drivers/npm/driver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 2c3913f75..6d277d511 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -60,7 +60,7 @@ const driver = options => { const browser = new Browser(); browser.visit(url, error => { - if ( !browser.resources['0'].response ) { + if ( !browser.resources['0'] || !browser.resources['0'].response ) { return wappalyzer.log('No response from server', 'driver', 'error'); }