mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-05-06 16:36:44 -03:00
Compare commits
2 Commits
v1.5.13
...
88c2249ded
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88c2249ded | ||
|
|
eae1c2d2c3 |
@@ -599,7 +599,8 @@ export class CanvasInteractions {
|
||||
// so handlePasteEvent can access e.clipboardData for system images.
|
||||
if (this.canvas.canvasLayers.internalClipboard.length > 0) {
|
||||
this.canvas.canvasLayers.pasteLayers();
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
// Don't preventDefault - let paste event fire for system clipboard
|
||||
handled = false;
|
||||
}
|
||||
|
||||
@@ -140,7 +140,6 @@ class WebSocketManager {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const protocol = location.protocol === "https:" ? "wss:" : "ws:";
|
||||
const wsUrl = `${protocol}//${location.host}/layerforge/canvas_ws`;
|
||||
export const webSocketManager = new WebSocketManager(wsUrl);
|
||||
|
||||
@@ -168,5 +168,6 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user