diff options
author | JoramWilander <jwawilander@gmail.com> | 2016-01-27 11:44:00 -0500 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2016-01-27 11:44:00 -0500 |
commit | 5c27aff06ffecc249edcdc6cc9d6daea8f137add (patch) | |
tree | bba0ef7e44dddbcce5863bfe5cb77f8dc52e64de /web | |
parent | d2a1950d3c9f074b9b846b471968728a98dd44cf (diff) | |
download | chat-5c27aff06ffecc249edcdc6cc9d6daea8f137add.tar.gz chat-5c27aff06ffecc249edcdc6cc9d6daea8f137add.tar.bz2 chat-5c27aff06ffecc249edcdc6cc9d6daea8f137add.zip |
Only set store preferences if not null in head.html
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/head.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/templates/head.html b/web/templates/head.html index 257877376..b1ec905b5 100644 --- a/web/templates/head.html +++ b/web/templates/head.html @@ -77,7 +77,9 @@ window.mm_preferences = {{ .Preferences }}; $(function() { - PreferenceStore.setPreferences(window.mm_preferences); + if (window.mm_preferences != null) { + PreferenceStore.setPreferences(window.mm_preferences); + } }); if ({{.SessionTokenIndex}} >= 0) { |