summaryrefslogtreecommitdiffstats
path: root/web/templates
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-25 20:14:27 -0500
committer=Corey Hulen <corey@hulen.com>2016-01-25 20:14:27 -0500
commitd20d6bed06289503301e54bc9bce387df419af4f (patch)
treec2b13a71faab678d97ac3e0c626b9736a7e5e605 /web/templates
parent1701a2cbbe698c96544c275f41d7dbff4b88fd0c (diff)
downloadchat-d20d6bed06289503301e54bc9bce387df419af4f.tar.gz
chat-d20d6bed06289503301e54bc9bce387df419af4f.tar.bz2
chat-d20d6bed06289503301e54bc9bce387df419af4f.zip
PLT-7 fixing error bar msg
Diffstat (limited to 'web/templates')
-rw-r--r--web/templates/head.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/web/templates/head.html b/web/templates/head.html
index 4060d2410..845cc76e7 100644
--- a/web/templates/head.html
+++ b/web/templates/head.html
@@ -62,8 +62,11 @@
<style id="antiClickjack">body{display:none !important;}</style>
<script>
- ReactIntl.addLocaleData(ReactIntlLocaleData.en);
- ReactIntl.addLocaleData(ReactIntlLocaleData.es);
+ if ('ReactIntl' in window && 'ReactIntlLocaleData' in window) {
+ Object.keys(ReactIntlLocaleData).forEach((lang) => {
+ ReactIntl.addLocaleData(ReactIntlLocaleData[lang]);
+ });
+ }
window.mm_config = {{ .ClientCfg }};
window.mm_license = {{ .ClientLicense }};