mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1165416 - Update Pocket code to latest version (May 15th code drop). r=dolske,jaws
This commit is contained in:
parent
237251067d
commit
f1795fc486
@ -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;
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user