Use hostname instead of full URL

main
Elbert Alias 10 years ago
parent cdce395e67
commit 7ed96d0d7c

@ -5,10 +5,11 @@ var exports = {};
(function(exports) { (function(exports) {
var utils = { var utils = {
pageMeta: { pageMeta: {
'url': window.location.href, url: window.location.hostname,
'referrer': window.document.referrer, isHP: window.location.pathname === '/',
'rand': Math.floor(Math.random() * 10e12), referrer: window.document.referrer,
'startTime': new Date().getTime() rand: Math.floor(Math.random() * 10e12),
startTime: new Date().getTime()
}, },
realArray: function(a) { realArray: function(a) {

@ -508,8 +508,6 @@ var wappalyzer = (function() {
} }
} }
w.log('hostnames: ' + Object.keys(w.ping.hostnames).length); //
if ( Object.keys(w.ping.hostnames).length >= 20 ) { if ( Object.keys(w.ping.hostnames).length >= 20 ) {
driver('ping'); driver('ping');
} }

@ -508,8 +508,6 @@ var wappalyzer = (function() {
} }
} }
w.log('hostnames: ' + Object.keys(w.ping.hostnames).length); //
if ( Object.keys(w.ping.hostnames).length >= 20 ) { if ( Object.keys(w.ping.hostnames).length >= 20 ) {
driver('ping'); driver('ping');
} }

@ -508,8 +508,6 @@ var wappalyzer = (function() {
} }
} }
w.log('hostnames: ' + Object.keys(w.ping.hostnames).length); //
if ( Object.keys(w.ping.hostnames).length >= 20 ) { if ( Object.keys(w.ping.hostnames).length >= 20 ) {
driver('ping'); driver('ping');
} }