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 | |
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')
-rw-r--r-- | web/react/stores/browser_store.jsx | 2 | ||||
-rw-r--r-- | web/react/utils/async_client.jsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/react/stores/browser_store.jsx b/web/react/stores/browser_store.jsx index 8e86ce32f..2e3a26cff 100644 --- a/web/react/stores/browser_store.jsx +++ b/web/react/stores/browser_store.jsx @@ -72,7 +72,7 @@ class BrowserStoreClass { console.log('An error occurred while setting local storage, clearing all props'); //eslint-disable-line no-console localStorage.clear(); sessionStorage.clear(); - window.location.href = window.location.href; + window.location.reload(true); } } 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 } } |