Moved PreferenceStore initialization into head.html

Этот коммит содержится в:
hmhealey
2016-01-26 09:52:26 -05:00
родитель a6c97490b3
Коммит c889d9bee1
3 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@@ -74,6 +74,11 @@
window.mm_user = {{ .User }};
window.mm_channel = {{ .Channel }};
window.mm_locale = {{ .Locale }};
window.mm_preferences = {{ .Preferences }};
$(function() {
PreferenceStore.setPreferences(window.mm_preferences);
});
if ({{.SessionTokenIndex}} >= 0) {
window.mm_session_token_index = {{.SessionTokenIndex}};