Allow the server to control category visibility

This commit is contained in:
Cryptkeeper
2016-02-23 19:19:15 -06:00
parent 28160054c0
commit 9ac6502394
4 changed files with 21 additions and 19 deletions

View File

@ -67,7 +67,8 @@ function handleRequest(req, res) {
categories: categories,
graphDuration: config.graphDuration,
servers: servers,
bootTime: util.getBootTime()
bootTime: util.getBootTime(),
categoriesVisible: config.categoriesVisible || false
};
res.write('setPublicConfig(' + JSON.stringify(publicConfig) + ');');