From 03d270c82d257587f5609bf56de53236fd41324b Mon Sep 17 00:00:00 2001 From: Christopher Akiki Date: Sat, 16 Jul 2022 21:11:06 +0200 Subject: [PATCH] Update runcontrol.js --- mesa/visualization/templates/js/runcontrol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesa/visualization/templates/js/runcontrol.js b/mesa/visualization/templates/js/runcontrol.js index 9d312f13339..bfe3cf4ee23 100644 --- a/mesa/visualization/templates/js/runcontrol.js +++ b/mesa/visualization/templates/js/runcontrol.js @@ -131,7 +131,7 @@ resetModelButton.onclick = () => controller.reset(); /** Open the websocket connection; support TLS-specific URLs when appropriate */ const ws = new WebSocket( (window.location.protocol === "https:" ? "wss://" : "ws://") + - location.host + location.pathname.replace('/spaces','') + + location.host + location.pathname.replace('/+','') + "/ws" );