summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.html b/index.html
index bb43cc5..cf54958 100644
--- a/index.html
+++ b/index.html
@@ -58,7 +58,8 @@
<script>
class Board {
constructor(elem) {
- this.socket = new WebSocket('ws://localhost:8000/socket')
+
+ this.socket = new WebSocket(`ws://${window.location.host}/socket`)
this.exiting = false
this.boardState = {}
window.addEventListener('beforeunload', () => {