diff --git a/express.js b/express.js index 75d2878d..4a89903a 100644 --- a/express.js +++ b/express.js @@ -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', { diff --git a/routes/middleware.js b/routes/middleware.js index 5e9f8b83..79391dbf 100755 --- a/routes/middleware.js +++ b/routes/middleware.js @@ -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;