Fix: Refactoring of "Excludes rules" processing

Excludes rule should take care of detected apps only
main
Laurent Cherpit 11 years ago
parent 95f20e9715
commit 773a454303

@ -387,7 +387,10 @@ var wappalyzer = (function() {
if ( !apps[app].detected ) { if ( !apps[app].detected ) {
delete apps[app]; delete apps[app];
} }
}
// Exclude app in detected apps only
for ( app in apps ) {
if (w.apps[app].excludes ) { if (w.apps[app].excludes ) {
if ( typeof w.apps[app].excludes === 'string' ) { if ( typeof w.apps[app].excludes === 'string' ) {
w.apps[app].excludes = [ w.apps[app].excludes ]; w.apps[app].excludes = [ w.apps[app].excludes ];

Loading…
Cancel
Save