mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Handle https when creating socket
This commit is contained in:
parent
c472377622
commit
540bbbdb82
@ -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