From 6dec981243cae6b323688d49f0447184a2e51638 Mon Sep 17 00:00:00 2001 From: James Hobin Date: Thu, 30 May 2024 15:07:54 -0400 Subject: [PATCH] Clear fragment from input to WS url since it's not allowed --- src/ToolSocket.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ToolSocket.js b/src/ToolSocket.js index c22017b..f849c3c 100644 --- a/src/ToolSocket.js +++ b/src/ToolSocket.js @@ -44,6 +44,7 @@ class ToolSocket { } else if (isBrowser) { url = new URL(window.location.href); url.protocol = url.protocol.replace('http', 'ws'); + url.hash = ''; this.connect(url, networkId, origin); }