Minor fixes

main
Elbert Alias 7 years ago
parent afdae5c5fc
commit 5febcb537e

@ -53,8 +53,6 @@ const driver = {
}); });
}); });
console.log('resolve ' + url);
resolve(apps); resolve(apps);
}; };

@ -300,7 +300,9 @@ class Wappalyzer {
* Cache detected applications * Cache detected applications
*/ */
cacheDetectedApps(apps, url) { cacheDetectedApps(apps, url) {
if (!this.driver.ping instanceof Function) return; if ( !( this.driver.ping instanceof Function ) ) {
return;
}
Object.keys(apps).forEach(appName => { Object.keys(apps).forEach(appName => {
var app = apps[appName]; var app = apps[appName];
@ -320,7 +322,9 @@ class Wappalyzer {
* Track detected applications * Track detected applications
*/ */
trackDetectedApps(apps, url, hostname, html) { trackDetectedApps(apps, url, hostname, html) {
if (!this.driver.ping instanceof Function) return; if ( !( this.driver.ping instanceof Function ) ) {
return;
}
Object.keys(apps).forEach(appName => { Object.keys(apps).forEach(appName => {
var app = apps[appName]; var app = apps[appName];

Loading…
Cancel
Save