From f0870ee2eafc106f2b94b1093cdcb35310128e5e Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Fri, 26 Dec 2014 08:40:11 +1100 Subject: [PATCH] Reset categories while iterating applications --- drivers/phantomjs/js/driver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phantomjs/js/driver.js b/drivers/phantomjs/js/driver.js index c56e78024..0ec60947f 100644 --- a/drivers/phantomjs/js/driver.js +++ b/drivers/phantomjs/js/driver.js @@ -41,15 +41,15 @@ */ displayApps: function() { var - app, + app, cats, apps = [], - cats = [], count = wappalyzer.detected[url] ? Object.keys(wappalyzer.detected[url]).length : 0; wappalyzer.log('driver.displayApps'); if ( count ) { for ( app in wappalyzer.detected[url] ) { + cats = []; wappalyzer.apps[app].cats.forEach(function(cat) { cats.push(wappalyzer.categories[cat]);