diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-15 18:59:14 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-15 18:59:14 -0700 |
commit | b2a679c25da42c4665059965830858da4f0ec238 (patch) | |
tree | 831b04b0453a67dc291e08e091ffdb497d187922 /web/react/pages/home.jsx | |
parent | 788fc4373b8d22930b3420f7906e626e2bd63394 (diff) | |
download | chat-b2a679c25da42c4665059965830858da4f0ec238.tar.gz chat-b2a679c25da42c4665059965830858da4f0ec238.tar.bz2 chat-b2a679c25da42c4665059965830858da4f0ec238.zip |
PLT-93 cleaing up client side configs
Diffstat (limited to 'web/react/pages/home.jsx')
-rw-r--r-- | web/react/pages/home.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/pages/home.jsx b/web/react/pages/home.jsx index 18553542c..2299c306e 100644 --- a/web/react/pages/home.jsx +++ b/web/react/pages/home.jsx @@ -4,12 +4,12 @@ var ChannelStore = require('../stores/channel_store.jsx'); var Constants = require('../utils/constants.jsx'); -function setupHomePage(teamURL) { +function setupHomePage(props) { var last = ChannelStore.getLastVisitedName(); if (last == null || last.length === 0) { - window.location = teamURL + '/channels/' + Constants.DEFAULT_CHANNEL; + window.location = props.TeamURL + '/channels/' + Constants.DEFAULT_CHANNEL; } else { - window.location = teamURL + '/channels/' + last; + window.location = props.TeamURL + '/channels/' + last; } } |