don't force websockets

master
Aevann1 2022-08-26 22:25:17 +02:00
parent bc743fc169
commit edf9911123
2 changed files with 4 additions and 4 deletions

View File

@ -3,8 +3,7 @@
const ua=window.navigator.userAgent
let socket
if (ua.includes('iPhone') || ua.includes('iPad')) socket=io()
else socket=io({transports: ["websocket"]})
socket=io()
const chatline = document.getElementsByClassName('chat-line')[0]
const box = document.getElementById('chat-window')
@ -184,4 +183,5 @@ function scroll_chat() {
}, 200);
}
box.scrollTo(0, box.scrollHeight)
scroll_chat();
box.scrollTo(0, box.scrollHeight);

View File

@ -214,6 +214,6 @@
<script src="{{asset('js/lozad.js')}}"></script>
<script src="/assets/js/lite-youtube.js?v=241"></script>
<script src="/chat.js?v=3039"></script>
<script src="/chat.js?v=3040"></script>
</body>