summaryrefslogtreecommitdiffstats
path: root/web/react/stores/file_store.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-03-08 10:56:38 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2016-03-08 10:56:38 -0500
commit01536aa5508721a0d23c12aad520f5f34ba8e75d (patch)
tree036e93c7fa360469ed47b9c2be95c7df28c191f3 /web/react/stores/file_store.jsx
parent22470c2069eb21539540d19e80fd85394782c9a7 (diff)
downloadchat-01536aa5508721a0d23c12aad520f5f34ba8e75d.tar.gz
chat-01536aa5508721a0d23c12aad520f5f34ba8e75d.tar.bz2
chat-01536aa5508721a0d23c12aad520f5f34ba8e75d.zip
Globally exported all stores when developer mode is enabled
Diffstat (limited to 'web/react/stores/file_store.jsx')
-rw-r--r--web/react/stores/file_store.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/stores/file_store.jsx b/web/react/stores/file_store.jsx
index 6d7e0f354..c1fd0ef74 100644
--- a/web/react/stores/file_store.jsx
+++ b/web/react/stores/file_store.jsx
@@ -57,4 +57,9 @@ class FileStore extends EventEmitter {
}
}
-export default new FileStore();
+const instance = new FileStore();
+export default instance;
+
+if (window.mm_config.EnableDeveloper === 'true') {
+ window.FileStore = instance;
+}