Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #5254 and fix #5253, remove FxA marketing (#5272)
Browse files Browse the repository at this point in the history
This simply says to never show the promotions (but does not remove the promotion code).
  • Loading branch information
ianb authored and jaredhirsch committed Jan 7, 2019
1 parent dbdc812 commit daec240
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server/src/promotion-strategy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
class PromotionStrategy {
/* Display Firefox Account onboarding dialog in header below signin button */
shouldShowOnboardingDialog(isOwner, isShotPage) {
// Because we are deprecating the server, we never want to show this.
return false;
/*
let show = false;
// Exit without showing dialog on non-owner shot page
if (isShotPage && !isOwner) {
Expand All @@ -16,6 +19,7 @@ class PromotionStrategy {
show = true;
}
return show;
*/
}

/* Display edit tool promotion on shot page below edit button */
Expand Down Expand Up @@ -59,10 +63,14 @@ class PromotionStrategy {

/* Display FxA signin ad-banner inside header */
shouldShowFxaBanner(hasFxa) {
// Because we are deprecating the server, we never want to show this.
return false;
/*
if (!hasFxa) {
return true;
}
return false;
*/
}

shouldShowDeprecation() {
Expand Down

0 comments on commit daec240

Please sign in to comment.