Update websocket.js to use browser scheme

This commit is contained in:
Calvin Bui 2023-05-13 20:16:55 +10:00 committed by GitHub
parent ab5e3d9f85
commit 2cb9042107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ var globals={
waitAnimation:undefined
}
var socket = io.connect('http://' + document.domain + ':' + location.port);
var socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port);
socket.on('connect', function() {
});