Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Update to latest n-desktop-app-banner and remove subscriberCohort che…
Browse files Browse the repository at this point in the history
…ck for it

 🐿 v2.5.16
  • Loading branch information
remybach committed Nov 9, 2017
1 parent cbe5877 commit 2f4fd8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"next-session-client": "^2.3.1",
"n-counter-ad-blocking": "^3.1.2",
"n-topic-search": "^1.0.0",
"n-desktop-app-banner": "^1.0.6"
"n-desktop-app-banner": "^2.0.0"
},
"resolutions": {
"n-ui-foundations": "^2.4.3"
Expand Down
2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = options => {
app.use(function (req, res, next) {
app.locals.__disableAndroidBanner = (!res.locals.flags.subscriberCohort || res.locals.flags.disableAndroidSmartBanner);
app.locals.__disableIosSmartBanner = (!res.locals.flags.subscriberCohort || res.locals.flags.disableIosSmartBanner);
app.locals.__enableDesktopAppBanner = res.locals.flags.subscriberCohort && res.locals.flags.onboardingMessaging === 'appPromotingBanner';
app.locals.__enableDesktopAppBanner = res.locals.flags.onboardingMessaging === 'appPromotingBanner';

next();
});
Expand Down

0 comments on commit 2f4fd8a

Please sign in to comment.