diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2016-01-26 09:52:26 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2016-01-26 13:58:23 -0500 |
commit | c889d9bee107c61513f037fa2f66bf3a0d3fcb42 (patch) | |
tree | feb1ac4f79d2987d2b3e933afa03e930685d11e6 /web/templates/head.html | |
parent | a6c97490b3c6b7bca00d16bc436abf902ee7b101 (diff) | |
download | chat-c889d9bee107c61513f037fa2f66bf3a0d3fcb42.tar.gz chat-c889d9bee107c61513f037fa2f66bf3a0d3fcb42.tar.bz2 chat-c889d9bee107c61513f037fa2f66bf3a0d3fcb42.zip |
Moved PreferenceStore initialization into head.html
Diffstat (limited to 'web/templates/head.html')
-rw-r--r-- | web/templates/head.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/templates/head.html b/web/templates/head.html index fc16eb2dc..14b447325 100644 --- a/web/templates/head.html +++ b/web/templates/head.html @@ -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}}; |