From: Benjamin Auder Date: Tue, 4 Feb 2020 09:24:10 +0000 (+0100) Subject: Fix current page in sockets.js X-Git-Url: https://git.auder.net/doc/html/css/scripts/pieces/assets/rpsls.css?a=commitdiff_plain;h=1ac94d6fcd258b56a1c1bdf39e6a1e757a99e9fc;p=vchess.git Fix current page in sockets.js --- diff --git a/client/src/main.js b/client/src/main.js index 7015362b..9d2e73d1 100644 --- a/client/src/main.js +++ b/client/src/main.js @@ -24,7 +24,7 @@ new Vue({ }); // TODO: why is this wrong? (Maybe because $route still uninitialized?) //store.initialize(this.$route.path); - store.initialize(window.location.href.split("#")[1]); + store.initialize(window.location.href.split("#")[1].split("?")[0]); // NOTE: at this point, variants and tr(anslations) might be uninitialized }, }).$mount("#app");