diff options
-rw-r--r-- | index.html | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -58,8 +58,7 @@ <script> class Board { constructor(elem) { - - this.socket = new WebSocket(`ws://${window.location.host}/socket`) + this.socket = new WebSocket(`${location.protocol.includes('s') ? 'wss' : 'ws'}://${window.location.host}/socket`) this.exiting = false this.boardState = {} window.addEventListener('beforeunload', () => { |