diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-09-28 16:31:18 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-09-29 08:51:36 -0700 |
commit | 558f8a322feba9fa22509a58a01411225c81b469 (patch) | |
tree | ed1eeaaedc64f0a17d43b732eb02ef9ad5772dd8 /web/react/utils | |
parent | 5b67abf34bccee1425b980675865319eb3c7602c (diff) | |
download | chat-558f8a322feba9fa22509a58a01411225c81b469.tar.gz chat-558f8a322feba9fa22509a58a01411225c81b469.tar.bz2 chat-558f8a322feba9fa22509a58a01411225c81b469.zip |
Removed unused title update code
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/utils.jsx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index 61dcae6d8..fec13abe9 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -790,16 +790,12 @@ export function isValidUsername(name) { return error; } -export function updateTabTitle(name) { - document.title = name + ' ' + document.title.substring(document.title.lastIndexOf('-')); -} - export function updateAddressBar(channelName) { var teamURL = window.location.href.split('/channels')[0]; history.replaceState('data', '', teamURL + '/channels/' + channelName); } -export function switchChannel(channel, teammateName) { +export function switchChannel(channel) { AppDispatcher.handleViewAction({ type: ActionTypes.CLICK_CHANNEL, name: channel.name, @@ -808,12 +804,6 @@ export function switchChannel(channel, teammateName) { updateAddressBar(channel.name); - if (channel.type === 'D' && teammateName) { - updateTabTitle(teammateName); - } else { - updateTabTitle(channel.display_name); - } - AsyncClient.getChannels(true, true, true); AsyncClient.getChannelExtraInfo(true); AsyncClient.getPosts(channel.id); |