mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-05-07 00:46:43 -03:00
replace hardcoded ws protocol with wss protocol based on SSL
This commit is contained in:
@@ -140,5 +140,7 @@ class WebSocketManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const wsUrl = `ws://${window.location.host}/layerforge/canvas_ws`;
|
|
||||||
|
const protocol = location.protocol === "https:" ? "wss:" : "ws:";
|
||||||
|
const wsUrl = `${protocol}//${location.host}/layerforge/canvas_ws`;
|
||||||
export const webSocketManager = new WebSocketManager(wsUrl);
|
export const webSocketManager = new WebSocketManager(wsUrl);
|
||||||
|
|||||||
Reference in New Issue
Block a user