Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support to use behind proxy #196

Merged
merged 1 commit into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<head>
<title>Mineflayer StateMachine</title>

<link rel="stylesheet" type="text/css" href="/web/index.css" />
<link rel="stylesheet" type="text/css" href="./web/index.css" />

<script src="/socket.io/socket.io.js"></script>
<script src="/web/index.js"></script>
<script src="./socket.io/socket.io.js"></script>
<script src=".//web/index.js"></script>
</head>

<body onload="init()">
Expand Down
4 changes: 3 additions & 1 deletion web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
Loading