summaryrefslogtreecommitdiffstats
path: root/webapp/client
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client')
-rw-r--r--webapp/client/test_web_client.jsx7
-rw-r--r--webapp/client/web_client.jsx2
2 files changed, 8 insertions, 1 deletions
diff --git a/webapp/client/test_web_client.jsx b/webapp/client/test_web_client.jsx
new file mode 100644
index 000000000..ac8055f9e
--- /dev/null
+++ b/webapp/client/test_web_client.jsx
@@ -0,0 +1,7 @@
+// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import Client from './client.jsx';
+
+var WebClient = new Client();
+export default WebClient;
diff --git a/webapp/client/web_client.jsx b/webapp/client/web_client.jsx
index 99f30da37..f5d7f6c80 100644
--- a/webapp/client/web_client.jsx
+++ b/webapp/client/web_client.jsx
@@ -50,7 +50,7 @@ class WebClientClass extends Client {
return;
}
- if (err.status === HTTP_UNAUTHORIZED && res.req.url !== '/api/v3/users/login') {
+ if (err.status === HTTP_UNAUTHORIZED && res.req.url !== this.getUsersRoute() + '/login') {
GlobalActions.emitUserLoggedOutEvent('/login');
}