Bug 1165416 - Update Pocket code to latest version (May 15th code drop). r=dolske,jaws

This commit is contained in:
Nate Weiner 2015-05-15 19:04:03 -04:00
parent 237251067d
commit f1795fc486
2 changed files with 13 additions and 14 deletions

View File

@ -390,4 +390,10 @@
.pkt_ext_signup_ja .pkt_ext_introdetailhero .pkt_ext_tagline,
.pkt_ext_signup_ru .pkt_ext_introdetailhero .pkt_ext_tagline {
font-size: 13px;
}
.pkt_ext_signup_overflow.pkt_ext_signup_de .signup-btn-firefox .logo,
.pkt_ext_signup_overflow.pkt_ext_signup_es .signup-btn-firefox .logo,
.pkt_ext_signup_overflow.pkt_ext_signup_ja .signup-btn-firefox .logo,
.pkt_ext_signup_overflow.pkt_ext_signup_ru .signup-btn-firefox .logo {
display: none;
}

View File

@ -604,28 +604,21 @@ var pktApi = (function() {
* Helper function to get current signup AB group the user is in
*/
function getSignupAB() {
if (!getSetting('signupAB'))
var setting = getSetting('signupAB');
if (!setting || setting.contains('hero'))
{
var rand = (Math.floor(Math.random()*100+1));
if (rand > 95)
if (rand > 90)
{
setSetting('signupAB','storyboard_nlm');
}
else if (rand > 90)
{
setSetting('signupAB','hero_nlm');
}
else if (rand > 45)
{
setSetting('signupAB','storyboard_lm');
setting = 'storyboard_nlm';
}
else
{
setSetting('signupAB','hero_lm');
setting = 'storyboard_lm';
}
setSetting('signupAB',setting);
}
return getSetting('signupAB');
return setting;
}
/**