From a61103282bcef20d6a2045cdc764067457768467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Poumi=C3=A1n?= Date: Sun, 30 Jul 2017 20:12:44 -0600 Subject: [PATCH] Fix issues on wappalyzer.js --- src/wappalyzer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wappalyzer.js b/src/wappalyzer.js index 81d69bf89..94b950c28 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -168,7 +168,7 @@ wappalyzer.parseRobotsTxt = robotsTxt => { /** * */ -wappalyzer.ping() { +wappalyzer.ping = () => { if ( Object.keys(hostnameCache).length >= 50 || adCache.length >= 50 ) { wappalyzer.driver.ping(hostnameCache, adCache); @@ -299,7 +299,7 @@ function resolveImplies(apps, url) { * Cache detected applications */ function cacheDetectedApps(apps, url) { - wappalyzer.driver.ping instanceof Function || return; + if (!wappalyzer.driver.ping instanceof Function) return; Object.keys(apps).forEach(appName => { var app = apps[appName]; @@ -319,7 +319,7 @@ function cacheDetectedApps(apps, url) { * Track detected applications */ function trackDetectedApps(apps, url, hostname, html) { - wappalyzer.driver.ping instanceof Function || return; + if (!wappalyzer.driver.ping instanceof Function) return; Object.keys(apps).forEach(appName => { var app = apps[appName];