fixed togetherjs session bug
This commit is contained in:
parent
472265572b
commit
3c71b00d05
|
@ -12,6 +12,7 @@
|
||||||
});
|
});
|
||||||
TogetherJSConfig_toolName = "Collaboration";
|
TogetherJSConfig_toolName = "Collaboration";
|
||||||
TogetherJSConfig_suppressJoinConfirmation = true;
|
TogetherJSConfig_suppressJoinConfirmation = true;
|
||||||
|
{% if session.get('user') %}
|
||||||
TogetherJSConfig_getUserName = function () {
|
TogetherJSConfig_getUserName = function () {
|
||||||
return {{ session['user'].get('username')|tojson }};
|
return {{ session['user'].get('username')|tojson }};
|
||||||
};
|
};
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
TogetherJSConfig_getUserAvatar = function () {
|
TogetherJSConfig_getUserAvatar = function () {
|
||||||
return {{ session['user'].get('avatar')|tojson }};
|
return {{ session['user'].get('avatar')|tojson }};
|
||||||
};
|
};
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
TogetherJSConfig_on_ready = function () {
|
TogetherJSConfig_on_ready = function () {
|
||||||
MDR.sanitize = true;
|
MDR.sanitize = true;
|
||||||
|
|
Loading…
Reference in a new issue