Define the start page in the config file

This commit is contained in:
Sebastien Hut 2015-02-09 16:17:23 +01:00
parent b5f3041e42
commit 5cb060242d
2 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,8 @@ module.exports = {
function start() {
// start our router and show the appropriate page
app.history.start({pushState: true, root: '/'});
if (app.history.fragment == '' && SERVER_CONFIG.startup)
app.navigate(SERVER_CONFIG.startup);
cb();
}

View File

@ -16,5 +16,6 @@
"domain": "localhost",
"wss": "wss://localhost:5281/xmpp-websocket/",
"muc": "chat.localhost",
"startup": ""
}
}