|
|
|
|
@ -33,7 +33,7 @@ |
|
|
|
|
|
|
|
|
|
<link rel="icon" href="{% static 'img/favicon.jpg' %}" type="image/x-icon"> |
|
|
|
|
<link rel="shortcut icon" href="{% static 'img/favicon50.jpg' %}" type="image/x-icon"> |
|
|
|
|
<link rel="apple-touch-icon" href="{% static 'img/favicon128.jpg' %}" sizes="128x128" > |
|
|
|
|
<link rel="apple-touch-icon" href="{% static 'img/favicon128.jpg' %}" sizes="128x128"> |
|
|
|
|
<link rel="icon" type="image/png" href="{% static 'img/favicon50.jpg' %}" sizes="32x32"> |
|
|
|
|
<link rel="icon" type="image/png" href="{% static 'img/favicon18.jpg' %}" sizes="16x16"> |
|
|
|
|
|
|
|
|
|
@ -100,7 +100,13 @@ |
|
|
|
|
|
|
|
|
|
if ((queryString.indexOf('/chat') != 0) && (queryString.indexOf('/users/contractor-office/work-projects') != 0)) { |
|
|
|
|
domain = domain.replace(':' + port, ''); |
|
|
|
|
var url = 'ws://' + domain + '/chat/' + userId + '/'; |
|
|
|
|
if (window.location.protocol == 'https:') { |
|
|
|
|
var ws = "wss://"; |
|
|
|
|
} else { |
|
|
|
|
var ws = "ws://"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var url = ws + domain + '/chat/' + userId + '/'; |
|
|
|
|
var sock = new WebSocket(url); |
|
|
|
|
var intervalId; |
|
|
|
|
sock.onopen = function () { |
|
|
|
|
|