Add hotkey to go to next challenge/bonfire from completion modal, keep editor in focus on exiting completion modal, allow for courseware to theoretically work in production and development.
This commit is contained in:
@@ -47,7 +47,6 @@ module.exports = {
|
||||
},
|
||||
|
||||
getDoneWithFirst100Hours: function(req, res) {
|
||||
console.log(req.user.points)
|
||||
if (req.user.points >= 53) {
|
||||
res.render('contact/done-with-first-100-hours', {
|
||||
title: 'Congratulations on finishing the first 100 hours of Free Code Camp!'
|
||||
|
||||
@@ -86,8 +86,8 @@ exports.returnIndividualCourseware = function(req, res, next) {
|
||||
verb: resources.randomVerb(),
|
||||
phrase: resources.randomPhrase(),
|
||||
compliment: resources.randomCompliment(),
|
||||
coursewareHash: courseware._id
|
||||
|
||||
coursewareHash: courseware._id,
|
||||
environment: resources.whichEnvironment()
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -247,6 +247,9 @@ module.exports = {
|
||||
.map(function(elem) {
|
||||
return elem.name;
|
||||
});
|
||||
},
|
||||
whichEnvironment: function() {
|
||||
return process.env.NODE_ENV;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user