Fix not answering any response if no apps detected

main
Abd ar-Rahman Hamidi 8 years ago committed by GitHub
parent 87a0b9f15a
commit 42000f2429

@ -73,12 +73,10 @@
displayApps: function() { displayApps: function() {
var var
app, cats, app, cats,
apps = [], apps = [];
count = wappalyzer.detected[url] ? Object.keys(wappalyzer.detected[url]).length : 0;
wappalyzer.log('driver.displayApps'); wappalyzer.log('driver.displayApps');
if ( count ) {
for ( app in wappalyzer.detected[url] ) { for ( app in wappalyzer.detected[url] ) {
cats = []; cats = [];
@ -97,7 +95,6 @@
} }
wappalyzer.driver.sendResponse(apps); wappalyzer.driver.sendResponse(apps);
}
}, },
/** /**

Loading…
Cancel
Save