From 5cb060242d7556da17920ed8076ed84d926e9f60 Mon Sep 17 00:00:00 2001 From: Sebastien Hut Date: Mon, 9 Feb 2015 16:17:23 +0100 Subject: [PATCH] Define the start page in the config file --- clientapp/app.js | 2 ++ dev_config.json | 1 + 2 files changed, 3 insertions(+) diff --git a/clientapp/app.js b/clientapp/app.js index b5dcf1f..0ac0603 100644 --- a/clientapp/app.js +++ b/clientapp/app.js @@ -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(); } diff --git a/dev_config.json b/dev_config.json index a44c52f..f5f7a8b 100644 --- a/dev_config.json +++ b/dev_config.json @@ -16,5 +16,6 @@ "domain": "localhost", "wss": "wss://localhost:5281/xmpp-websocket/", "muc": "chat.localhost", + "startup": "" } }