Merge pull request #184 from calvinbui/patch-1

Update websocket.js to use browser scheme
This commit is contained in:
Saifeddine ALOUI 2023-05-13 16:07:06 +02:00 committed by GitHub
commit 05fddbd804
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() {
});
@ -63,4 +63,4 @@ function send_message(service_name, parameters){
globals.socket.emit(service_name, parameters);
globals.is_generating = true
}
}
}