diff --git a/web/index.html b/web/index.html index 6c7ecdc..e6b988d 100644 --- a/web/index.html +++ b/web/index.html @@ -4,10 +4,10 @@ Mineflayer StateMachine - + - - + + diff --git a/web/index.js b/web/index.js index 74e00d3..27e442e 100644 --- a/web/index.js +++ b/web/index.js @@ -504,7 +504,9 @@ function init () { graph = new Graph(canvas) nestedGroups = [] - const socket = io() + const socket = io({ + path: window.location.pathname + 'socket.io' + }) socket.on('connected', packet => onConnected(packet)) socket.on('stateChanged', packet => onStateChanged(packet)) }