Skip to content

Commit

Permalink
remove deprecated client check
Browse files Browse the repository at this point in the history
  • Loading branch information
fcaps authored and Brutus5000 committed Nov 22, 2023
1 parent ee1b835 commit 85474c5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion express.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ app.locals.clanInvitations = {};
//Execute Middleware
app.use(middleware.injectServices);
app.use(middleware.initLocals);
app.use(middleware.clientChecks);

//Set static public directory path
app.use(express.static('public', {
Expand Down
11 changes: 0 additions & 11 deletions routes/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@ exports.initLocals = function(req, res, next) {
next();
};

exports.clientChecks = function(req, res, next) {
let locals = res.locals;
locals.removeNavigation = false;

let userAgent = req.headers['user-agent'];
if (userAgent === 'downlords-faf-client') {
locals.removeNavigation = true;
}
next();
};

exports.username = function(req, res, next) {
var locals = res.locals;

Expand Down

0 comments on commit 85474c5

Please sign in to comment.