summaryrefslogtreecommitdiffstats
path: root/web/react/utils/client.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-07-08 09:55:24 -0400
committerChristopher Speller <crspeller@gmail.com>2015-07-08 09:55:24 -0400
commit7f5ebb42b5712460fd29fb086b0734ccba1aacd9 (patch)
tree0537b826a82a7285b63e50080a7a232ec6d6675f /web/react/utils/client.jsx
parent95b9f872882b367556ca2330eea8c8309db542e6 (diff)
downloadchat-7f5ebb42b5712460fd29fb086b0734ccba1aacd9.tar.gz
chat-7f5ebb42b5712460fd29fb086b0734ccba1aacd9.tar.bz2
chat-7f5ebb42b5712460fd29fb086b0734ccba1aacd9.zip
Modifying all storage to use session storage. Also adding an abstraction layer to add current user id as a prefix to most keys.
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";
};