This commit is contained in:
2023-08-24 16:55:08 +03:00
parent 4f294455cc
commit 2a56bb093b

View File

@@ -9,17 +9,21 @@
<script src='{% static "js/jquery_v3_6_4.js" %}'> </script>
<script src='{% static "js/chat_sockets.js" %}'></script>
<script src="{% static "js/global_js.js" %}"></script>
<script>
{#var user_id = {{ user.id }}#}
ws_url = `ws://{% get_ws_address %}/ws/socket-server/?user_id={{ user.id }}`;
var chatSocket;
init_ws()
const beep = new Audio('/static/sounds/beep_2.mp3')
</script>
{% if user and not user.is_anonymous %}
<script src='{% static "js/chat_sockets.js" %}'></script>
<script src="{% static "js/global_js.js" %}"></script>
<script>
{#var user_id = {{ user.id }}#}
ws_url = `ws://{% get_ws_address %}/ws/socket-server/?user_id={{ user.id }}`;
var chatSocket;
init_ws()
const beep = new Audio('/static/sounds/beep_2.mp3')
</script>
{% endif %}