Reset categories while iterating applications

main
Elbert Alias 10 years ago
parent d8b6791e6e
commit f0870ee2ea

@ -41,15 +41,15 @@
*/ */
displayApps: function() { displayApps: function() {
var var
app, app, cats,
apps = [], apps = [],
cats = [],
count = wappalyzer.detected[url] ? Object.keys(wappalyzer.detected[url]).length : 0; count = wappalyzer.detected[url] ? Object.keys(wappalyzer.detected[url]).length : 0;
wappalyzer.log('driver.displayApps'); wappalyzer.log('driver.displayApps');
if ( count ) { if ( count ) {
for ( app in wappalyzer.detected[url] ) { for ( app in wappalyzer.detected[url] ) {
cats = [];
wappalyzer.apps[app].cats.forEach(function(cat) { wappalyzer.apps[app].cats.forEach(function(cat) {
cats.push(wappalyzer.categories[cat]); cats.push(wappalyzer.categories[cat]);

Loading…
Cancel
Save