Fix issue with web sockets not working

This commit is contained in:
Filip Gralinski 2021-04-24 17:43:53 +02:00
parent dd200e3578
commit a8c1761898
1 changed files with 4 additions and 1 deletions

View File

@ -178,7 +178,10 @@ getViewProgressWithWebSocketsR jobId = do
wait = document.getElementById("wait"),
conn;
url = url.replace("http:", "ws:").replace("https:", "wss:");
var anchor_name_regex = /\#.*$/;
url = url.replace("http:", "ws:").replace("https:", "wss:").replace(anchor_name_regex, "")
conn = new WebSocket(url);
conn.onmessage = function(e) {