diff --git a/js/CanvasInteractions.js b/js/CanvasInteractions.js index cc17e60..50d019a 100644 --- a/js/CanvasInteractions.js +++ b/js/CanvasInteractions.js @@ -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; } diff --git a/js/utils/WebSocketManager.js b/js/utils/WebSocketManager.js index 9fbb205..dc26feb 100644 --- a/js/utils/WebSocketManager.js +++ b/js/utils/WebSocketManager.js @@ -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);