Commit 2146414c authored by hass's avatar hass
Browse files

Issue #1995922 by timcosgrove: Cross-domain link check employs

deprecated use of $.attr()
parent 1b3801b3
......@@ -39,7 +39,7 @@ $(document).ready(function() {
ga("send", "event", "Mails", "Click", this.href.substring(7));
}
else if (ga.trackOutbound && this.href.match(/^\w+:\/\//i)) {
if (ga.trackDomainMode == 2 && isCrossDomain($(this).attr('hostname'), ga.trackCrossDomains)) {
if (ga.trackDomainMode == 2 && isCrossDomain(this.hostname, ga.trackCrossDomains)) {
// Top-level cross domain clicked. document.location is handled by _link internally.
event.preventDefault();
// @todo: unknown upgrade path
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment