summaryrefslogtreecommitdiffstats
path: root/web/react/components/channel_loader.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/components/channel_loader.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/components/channel_loader.jsx')
-rw-r--r--web/react/components/channel_loader.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/components/channel_loader.jsx b/web/react/components/channel_loader.jsx
index 537a41d03..1b389aa1d 100644
--- a/web/react/components/channel_loader.jsx
+++ b/web/react/components/channel_loader.jsx
@@ -5,12 +5,16 @@
to the server on page load. This is to prevent other React controls from spamming
AsyncClient with requests. */
+var BrowserStore = require('../stores/browser_store.jsx');
var AsyncClient = require('../utils/async_client.jsx');
var SocketStore = require('../stores/socket_store.jsx');
var Constants = require('../utils/constants.jsx');
module.exports = React.createClass({
componentDidMount: function() {
+ // Initalize stores
+ BrowserStore.initalize();
+
/* Start initial aysnc loads */
AsyncClient.getMe();
AsyncClient.getPosts(true);