summaryrefslogtreecommitdiffstats
path: root/web/react/utils/client.jsx
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-20 04:37:51 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-20 04:37:51 -0700
commitfa3a0df2b63d3f1bbbad44bf20afa48fed42aa06 (patch)
tree7ed37f554aae729a6fad579bc1a82e988de45971 /web/react/utils/client.jsx
parent36658c13a4c7ebdfff22b8570e0db52bfa4de000 (diff)
downloadchat-fa3a0df2b63d3f1bbbad44bf20afa48fed42aa06.tar.gz
chat-fa3a0df2b63d3f1bbbad44bf20afa48fed42aa06.tar.bz2
chat-fa3a0df2b63d3f1bbbad44bf20afa48fed42aa06.zip
Adding multi-session cookie
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r--web/react/utils/client.jsx16
1 files changed, 8 insertions, 8 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index ee1f9ad27..fab0640fb 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -48,14 +48,14 @@ function handleError(methodName, xhr, status, err) {
track('api', 'api_weberror', methodName, 'message', msg);
- if (xhr.status === 401) {
- if (window.location.href.indexOf('/channels') === 0) {
- window.location.pathname = '/login?redirect=' + encodeURIComponent(window.location.pathname + window.location.search);
- } else {
- var teamURL = window.location.href.split('/channels')[0];
- window.location.href = teamURL + '/login?redirect=' + encodeURIComponent(window.location.pathname + window.location.search);
- }
- }
+ // if (xhr.status === 401) {
+ // if (window.location.href.indexOf('/channels') === 0) {
+ // window.location.pathname = '/login?redirect=' + encodeURIComponent(window.location.pathname + window.location.search);
+ // } else {
+ // var teamURL = window.location.href.split('/channels')[0];
+ // window.location.href = teamURL + '/login?redirect=' + encodeURIComponent(window.location.pathname + window.location.search);
+ // }
+ // }
return e;
}