summaryrefslogtreecommitdiffstats
path: root/web/templates/head.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates/head.html')
-rw-r--r--web/templates/head.html4
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) {