diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-17 13:25:51 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-17 13:25:51 -0500 |
commit | 178e30ecededae61eb727f30919b30358590e7f5 (patch) | |
tree | 4fb4820a510946698083fefae944975ebc5eb9f6 /web/react/utils | |
parent | 1d7c44919237f424cfd65157cc08bff42753fd0f (diff) | |
parent | 2e8b3414ffd328b546448f24feaff8e8eb3d02d7 (diff) | |
download | chat-178e30ecededae61eb727f30919b30358590e7f5.tar.gz chat-178e30ecededae61eb727f30919b30358590e7f5.tar.bz2 chat-178e30ecededae61eb727f30919b30358590e7f5.zip |
Merge pull request #1454 from mattermost/force-reload
force reload on server update
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/async_client.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/async_client.jsx b/web/react/utils/async_client.jsx index 205c7461c..b39648bf0 100644 --- a/web/react/utils/async_client.jsx +++ b/web/react/utils/async_client.jsx @@ -63,7 +63,7 @@ export function getChannels(force, updateLastViewed, checkVersion) { if (serverVersion !== BrowserStore.getLastServerVersion()) { BrowserStore.setLastServerVersion(serverVersion); - window.location.href = window.location.href; + window.location.reload(true); console.log('Detected version update refreshing the page'); //eslint-disable-line no-console } } |