Skip to content

Commit

Permalink
Only overwrite referrer if this is an unload call
Browse files Browse the repository at this point in the history
We check the referrer many times for browsers that don't support
navtiming.  For this to work, we need the referrer to be correct until
after we've read the start time correctly.  To make sure this works, we
set the referrer only in the unload handler.
  • Loading branch information
Philip Tellis committed May 29, 2013
1 parent a39ad8d commit 441fc7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/rt.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ impl = {
subcookies = BOOMR.utils.getSubCookies(BOOMR.utils.getCookie(this.cookie)) || {};
// We use document.URL instead of location.href because of a bug in safari 4
// where location.href is URL decoded
subcookies.r = d.URL.replace(/#.*/, '');
if(how === "ul") {
subcookies.r = d.URL.replace(/#.*/, '');
}

if(how === "cl") {
if(url) {
Expand Down

0 comments on commit 441fc7e

Please sign in to comment.