diff options
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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', () => { |