summaryrefslogtreecommitdiffstats
path: root/web/react/utils/client.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-07-09 21:00:29 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-07-09 21:00:29 +0500
commitb61f653626df4183ddf2f3d26a4dd955436f15de (patch)
tree2c274b5f5c112f49ca175fe053a2743bbb75218f /web/react/utils/client.jsx
parenta533ff4d71cd6416d959ae970cded679242ba3e8 (diff)
parentb6fb6ea3be059d3c54027267760ccca0f95535ee (diff)
downloadchat-b61f653626df4183ddf2f3d26a4dd955436f15de.tar.gz
chat-b61f653626df4183ddf2f3d26a4dd955436f15de.tar.bz2
chat-b61f653626df4183ddf2f3d26a4dd955436f15de.zip
Merge branch 'master' of https://github.com/mattermost/platform
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r--web/react/utils/client.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index b4030baac..11d4c2601 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -1,6 +1,7 @@
// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
// See License.txt for license information.
+var BrowserStore = require('../stores/browser_store.jsx');
module.exports.track = function(category, action, label, prop, val) {
global.window.snowplow('trackStructEvent', category, action, label, prop, val);
@@ -204,7 +205,7 @@ module.exports.resetPassword = function(data, success, error) {
module.exports.logout = function() {
module.exports.track('api', 'api_users_logout');
- sessionStorage.clear();
+ BrowserStore.clear();
window.location.href = "/logout";
};