Fix undefined variables

main
Elbert Alias 8 years ago
parent 97b9285f8b
commit 3282680af5

@ -350,7 +350,10 @@ var wappalyzer = (function() {
}, },
resolveImplies: function(apps, url) { resolveImplies: function(apps, url) {
var checkImplies = true; var
confidence,
id,
checkImplies = true;
// Implied applications // Implied applications
// Run several passes as implied apps may imply other apps // Run several passes as implied apps may imply other apps
@ -395,7 +398,7 @@ var wappalyzer = (function() {
* Cache detected applications * Cache detected applications
*/ */
cacheDetectedApps: function(apps, url) { cacheDetectedApps: function(apps, url) {
var app, key, confidence; var app, id, confidence;
for ( app in apps ) { for ( app in apps ) {
confidence = apps[app].confidence; confidence = apps[app].confidence;
@ -403,8 +406,8 @@ var wappalyzer = (function() {
// Per URL // Per URL
w.detected[url][app] = apps[app]; w.detected[url][app] = apps[app];
for ( key in confidence ) { for ( id in confidence ) {
w.detected[url][app].confidence[key] = confidence[key]; w.detected[url][app].confidence[id] = confidence[id];
} }
} }
}, },

Loading…
Cancel
Save