mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
Merge pull request #184 from calvinbui/patch-1
Update websocket.js to use browser scheme
This commit is contained in:
commit
05fddbd804
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user