From 2e8b3414ffd328b546448f24feaff8e8eb3d02d7 Mon Sep 17 00:00:00 2001
From: =Corey Hulen <corey@hulen.com>
Date: Tue, 17 Nov 2015 10:03:28 -0800
Subject: force reload on server update

---
 web/react/utils/async_client.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/utils/async_client.jsx')

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
                     }
                 }
-- 
cgit v1.2.3-1-g7c22

