Skip to content
Browse files

read from cookie every time init is called since cookie name might ch…

…ange
  • Loading branch information...
1 parent 532774c commit c152f8326d2b46b2eceefdda34d5eae0f3d729e6 @bluesmoon committed Feb 6, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 plugins/rt.js
View
8 plugins/rt.js
@@ -240,8 +240,10 @@ BOOMR.plugins.RT = {
BOOMR.utils.pluginConfig(impl, config, "RT",
["cookie", "cookie_exp", "strict_referrer"]);
- // only initialize once. we still collect config every time init is called, but we set
- // event handlers only once
+ impl.initFromCookie();
+
+ // only initialize once. we still collect config and read from cookie
+ // every time init is called, but we set event handlers only once
if(impl.initialized) {
return this;
}
@@ -268,8 +270,6 @@ BOOMR.plugins.RT = {
// (eg: XHR calls). We set default values for these cases
impl.r = impl.r2 = d.referrer.replace(/#.*/, '');
- impl.initFromCookie();
-
impl.initialized = true;
return this;
},

0 comments on commit c152f83

Please sign in to comment.
Something went wrong with that request. Please try again.