X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fstore.js;h=2728aaf0647ffcf8a46646151035485277c61c44;hp=3b280d942ce39e82e3306596b87cb492ed83e879;hb=f41ce5806b989c06091a403d7e26ff3c457650c9;hpb=5f13148449c73de92993b7961c077167563b84e5 diff --git a/client/src/store.js b/client/src/store.js index 3b280d94..2728aaf0 100644 --- a/client/src/store.js +++ b/client/src/store.js @@ -36,8 +36,8 @@ export const store = this.state.user.notify = res.notify; }); } - this.state.conn = new WebSocket( - params.socketUrl + "/?sid=" + mysid + "&page=" + page); + this.state.conn = new WebSocket(params.socketUrl + "/?sid=" + mysid + + "&page=" + encodeURIComponent(page)); // Settings initialized with values from localStorage this.state.settings = { bcolor: localStorage["bcolor"] || "lichess",