diff options
author | BuildTools <unconfigured@null.spigotmc.org> | 2016-12-05 21:05:23 +0100 |
---|---|---|
committer | BuildTools <unconfigured@null.spigotmc.org> | 2016-12-05 21:05:23 +0100 |
commit | aa9d969df0b2aae30d0d6158f41d66f6c797c9a1 (patch) | |
tree | 73c7d97dce68b37fc6043ae3ba56aa2c9455790d /routes/index.js | |
parent | 3832b1af9194b73ba9b482ee706b94f2c7992bab (diff) |
added clean start spage
Diffstat (limited to 'routes/index.js')
-rw-r--r-- | routes/index.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/routes/index.js b/routes/index.js index 07192b7..bc0a936 100644 --- a/routes/index.js +++ b/routes/index.js @@ -4,11 +4,13 @@ const users = require('../lib/getUserIndex') /* GET home page. */ router.get('/', function (req, res, next) { - if (req.query.v === 'n') { - res.render('index', { version: 'new', users: users.users }) - } else { - res.render('index', { version: 'old', users: users.users }) + let flags = [] + if (req.query.nfd != null) { + flags.push('NO_FEATURE_DETECT') } + + const flagsStr = `var FLAGS = [${flags.map(flag => `"${flag}"`).toString(', ')}];` + res.render('index', { flagsStr, users: users.users }) }) module.exports = router |