Skip to content

Commit

Permalink
Update runcontrol.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cakiki authored Jul 16, 2022
1 parent b6ecdd8 commit 03d270c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesa/visualization/templates/js/runcontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);

Expand Down

0 comments on commit 03d270c

Please sign in to comment.