diff --git a/realms/templates/page/edit.html b/realms/templates/page/edit.html
index 1f96e06..6d38f75 100644
--- a/realms/templates/page/edit.html
+++ b/realms/templates/page/edit.html
@@ -12,6 +12,7 @@
});
TogetherJSConfig_toolName = "Collaboration";
TogetherJSConfig_suppressJoinConfirmation = true;
+ {% if session.get('user') %}
TogetherJSConfig_getUserName = function () {
return {{ session['user'].get('username')|tojson }};
};
@@ -19,6 +20,7 @@
TogetherJSConfig_getUserAvatar = function () {
return {{ session['user'].get('avatar')|tojson }};
};
+ {% endif %}
TogetherJSConfig_on_ready = function () {
MDR.sanitize = true;