summaryrefslogtreecommitdiffstats
path: root/web/react/stores
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-07-07 13:10:11 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-07-07 13:10:11 -0700
commit91511281c55ac9b7d3d8ce21d409905c2aec1955 (patch)
treeeadf0141fa525d71234a94ae445cc2cf619c3437 /web/react/stores
parent2be660f05dc895cb0378b06891a7e775fe4a44d9 (diff)
downloadchat-91511281c55ac9b7d3d8ce21d409905c2aec1955.tar.gz
chat-91511281c55ac9b7d3d8ce21d409905c2aec1955.tar.bz2
chat-91511281c55ac9b7d3d8ce21d409905c2aec1955.zip
Changed loading logic for retrieving more channels to allow for loading animation to be inserted into the More... menu that allows you to join more channels while waiting for the list of channels to load
Diffstat (limited to 'web/react/stores')
-rw-r--r--web/react/stores/channel_store.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/stores/channel_store.jsx b/web/react/stores/channel_store.jsx
index 3f259bc7d..387d52628 100644
--- a/web/react/stores/channel_store.jsx
+++ b/web/react/stores/channel_store.jsx
@@ -192,7 +192,7 @@ var ChannelStore = assign({}, EventEmitter.prototype, {
sessionStorage.setItem("more_channels", JSON.stringify(channels));
},
_getMoreChannels: function() {
- var channels = [];
+ var channels;
try {
channels = JSON.parse(sessionStorage.more_channels);
}