Skip to content

Commit

Permalink
Review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyjanenorton authored and groovecoder committed Aug 11, 2020
1 parent e07be34 commit 5632798
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
7 changes: 0 additions & 7 deletions controllers/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ function getBentoStrings(req, res) {
return res.json(localizedBentoStrings);
}

function protectMyEmail(req, res) {
return res.render("private-relay", {
title: req.fluentFormat("home-title"),
});
}

function _addPrivacyBundleToWaitlistsJoined(user) {
if (!user.waitlists_joined) {
return {"privacy_bundle": {"notified": false} };
Expand Down Expand Up @@ -142,7 +136,6 @@ module.exports = {
getAllBreaches,
getBentoStrings,
getSecurityTips,
protectMyEmail,
addEmailToBundleWaitlist,
notFound,
};
4 changes: 0 additions & 4 deletions public/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ header.show-shadow {
transition: all 0.2s ease;
}

.desktop-menu {
width: 100%;
}

.desktop-menu:hover .active-link::after {
opacity: 0;
}
Expand Down
8 changes: 1 addition & 7 deletions routes/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

const express = require("express");
const csrf = require("csurf");
const bodyParser = require("body-parser");

const jsonParser = bodyParser.json();

const {home, getAboutPage, getAllBreaches, getBentoStrings, getSecurityTips, protectMyEmail, addEmailToBundleWaitlist, notFound} = require("../controllers/home");
const { requireSessionUser } = require("../middleware");
const {home, getAboutPage, getAllBreaches, getBentoStrings, getSecurityTips, notFound} = require("../controllers/home");

const router = express.Router();
const csrfProtection = csrf();
Expand All @@ -17,8 +13,6 @@ router.get("/about", getAboutPage);
router.get("/breaches", getAllBreaches);
router.get("/security-tips", getSecurityTips);
router.get("/getBentoStrings", getBentoStrings);
router.get("/protect-my-email", requireSessionUser, protectMyEmail);
router.post("/premium-waitlist", jsonParser, requireSessionUser, addEmailToBundleWaitlist);
router.use(notFound);

module.exports = router;

0 comments on commit 5632798

Please sign in to comment.