Skip to content

Commit

Permalink
#92, correct comment enable flag check on server
Browse files Browse the repository at this point in the history
  • Loading branch information
thrize committed Apr 14, 2018
1 parent 826aed2 commit 3bf451d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1134,8 +1134,7 @@ app.get("/edit-config", function(req, res) {
change = true;
html_title += "Updated POST_METADATA_MAX_RUNS_TO_KEEP";
} else if (req.query.COMMENT_ENABLED) {
console.log('req.query.COMMENT_ENABLED = ' + req.query.COMMENT_ENABLED);
configVars.COMMENT_ENABLED = req.query.COMMENT_ENABLED.localeCompare('true');
configVars.COMMENT_ENABLED = atob(req.query.COMMENT_ENABLED).localeCompare('on');
change = true;
html_title += "Updated COMMENT_ENABLED";
}
Expand Down

0 comments on commit 3bf451d

Please sign in to comment.