Browse files

Only overwrite referrer if this is an unload call

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...
1 parent a39ad8d commit 441fc7e5945a91579f068637ba773e0f8030aed6 @bluesmoon committed May 29, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugins/rt.js
View
4 plugins/rt.js
@@ -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) {

0 comments on commit 441fc7e

Please sign in to comment.