LIL-647 Передавать пользователя в чат

remotes/origin/hotfix/LIL-661
gzbender 7 years ago
parent fcb6a5032c
commit 86584ecfad
  1. 3
      project/templates/lilcity/index.html

@ -42,6 +42,9 @@
<script type="text/javascript"> <script type="text/javascript">
window.__lc = window.__lc || {}; window.__lc = window.__lc || {};
window.__lc.license = 9917240; window.__lc.license = 9917240;
{% if request.user.is_authenticated %}
window.__lc.visitor = { name: '{{ request.user.get_full_name }}', email: '{{ request.user.email }}' };
{% endif %}
(function() { (function() {
var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true; var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js'; lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';

Loading…
Cancel
Save