diff --git a/src/drivers/chrome/js/ad.js b/src/drivers/chrome/js/ad.js index 08f31b681..8e1dfb8d6 100644 --- a/src/drivers/chrome/js/ad.js +++ b/src/drivers/chrome/js/ad.js @@ -67,7 +67,7 @@ var exports = {}; return Array.prototype.slice.apply(a); }, - onDocLoaded(doc, callback) { + onDocLoaded: function(doc, callback) { if ( doc.readyState === 'loading' ) { doc.addEventListener('DOMContentLoaded', callback); } else { diff --git a/src/drivers/chrome/js/driver.js b/src/drivers/chrome/js/driver.js index 791fec15e..d4b035bde 100644 --- a/src/drivers/chrome/js/driver.js +++ b/src/drivers/chrome/js/driver.js @@ -12,8 +12,7 @@ upgraded = false, tab, tabCache = {}, - headersCache = {}, - adCache = []; + headersCache = {}; w.driver = { /** @@ -91,7 +90,7 @@ break; case 'ad_log': - adCache.push(request.subject); + w.adCache.push(request.subject); break; case 'get_apps': @@ -217,11 +216,9 @@ w.ping = { hostnames: {} }; - w.driver.post('https://ad.wappalyzer.com/log/wp/', adCache); + w.driver.post('https://ad.wappalyzer.com/log/wp/', w.adCache); - w.log('adCache: ' + JSON.stringify(adCache)); // - - adCache = []; + w.adCache = []; } }, diff --git a/src/drivers/chrome/manifest.json b/src/drivers/chrome/manifest.json index 23a16faef..ebb88704b 100644 --- a/src/drivers/chrome/manifest.json +++ b/src/drivers/chrome/manifest.json @@ -1,7 +1,7 @@ { "name": "Wappalyzer", "homepage_url": "https://wappalyzer.com?pk_campaign=chrome&pk_kwd=context", "description": "Identifies software on the web", - "version": "2.40", + "version": "2.41", "default_locale": "en", "manifest_version": 2, "icons": { diff --git a/src/drivers/firefox/lib b/src/drivers/firefox/lib index 323dba475..6e4ec63d6 100644 --- a/src/drivers/firefox/lib +++ b/src/drivers/firefox/lib @@ -196,7 +196,7 @@ var wappalyzer = (function() { apps: {}, cats: null, ping: { hostnames: {} }, - adCache: [], + adCache: [], detected: {}, config: { diff --git a/src/wappalyzer.js b/src/wappalyzer.js index 323dba475..6e4ec63d6 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -196,7 +196,7 @@ var wappalyzer = (function() { apps: {}, cats: null, ping: { hostnames: {} }, - adCache: [], + adCache: [], detected: {}, config: {