summaryrefslogtreecommitdiffstats
path: root/web/react/utils/client.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-07-08 14:47:49 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-07-08 14:47:49 -0400
commit11dde6c44bbb39e88969eb1691cfcf9e21f5ad08 (patch)
tree89098ffe15c6998bc652623b07ff7861efb6a4a5 /web/react/utils/client.jsx
parenta65b2a2df52286ec4018b923971366f89b917307 (diff)
parentce5639a6290bcb2403376cabfffe784283ac5b5a (diff)
downloadchat-11dde6c44bbb39e88969eb1691cfcf9e21f5ad08.tar.gz
chat-11dde6c44bbb39e88969eb1691cfcf9e21f5ad08.tar.bz2
chat-11dde6c44bbb39e88969eb1691cfcf9e21f5ad08.zip
Merge pull request #150 from mattermost/mm-895
MM-895 Reorganization of browser storage.
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";
};