mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-09 13:50:49 +08:00
Handle https when creating socket
This commit is contained in:
parent
84ea70fa80
commit
af03443f73
@ -490,7 +490,7 @@ document.addEventListener('drop', (event) => {
|
||||
if(ws) return;
|
||||
|
||||
let opened = false;
|
||||
ws = new WebSocket(`ws://${location.host}/ws`);
|
||||
ws = new WebSocket(`ws${window.location.protocol === "https"? "s" : ""}://${location.host}/ws`);
|
||||
|
||||
ws.addEventListener("open", () => {
|
||||
opened = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user