2 Commits

Author SHA1 Message Date
Dariusz L
88c2249ded Rebuild JS artifacts (no functional changes)
Changes are auto-generated by TypeScript build (formatting/newlines only). No logic changes.
2026-05-01 20:46:28 +02:00
Dariusz L
eae1c2d2c3 Update WebSocketManager.ts 2026-05-01 20:34:51 +02:00
3 changed files with 4 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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);

View File

@@ -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);