forked from MarseyWorld/MarseyWorld
don't force websockets
parent
bc743fc169
commit
edf9911123
|
@ -3,8 +3,7 @@
|
||||||
const ua=window.navigator.userAgent
|
const ua=window.navigator.userAgent
|
||||||
let socket
|
let socket
|
||||||
|
|
||||||
if (ua.includes('iPhone') || ua.includes('iPad')) socket=io()
|
socket=io()
|
||||||
else socket=io({transports: ["websocket"]})
|
|
||||||
|
|
||||||
const chatline = document.getElementsByClassName('chat-line')[0]
|
const chatline = document.getElementsByClassName('chat-line')[0]
|
||||||
const box = document.getElementById('chat-window')
|
const box = document.getElementById('chat-window')
|
||||||
|
@ -184,4 +183,5 @@ function scroll_chat() {
|
||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
box.scrollTo(0, box.scrollHeight)
|
scroll_chat();
|
||||||
|
box.scrollTo(0, box.scrollHeight);
|
|
@ -214,6 +214,6 @@
|
||||||
<script src="{{asset('js/lozad.js')}}"></script>
|
<script src="{{asset('js/lozad.js')}}"></script>
|
||||||
<script src="/assets/js/lite-youtube.js?v=241"></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>
|
</body>
|
Loading…
Reference in New Issue