X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Frouter.js;h=49f777d00ea463388aee84a18a110b85392a5c32;hp=380ccc6cd2575301da919dd85be5a487d7fa20a9;hb=9330b976e02148bb89e11819070d5d818e82e522;hpb=e69f159dfdeb8dbe5eee89c6e6f78fd9e7323640 diff --git a/client/src/router.js b/client/src/router.js index 380ccc6c..49f777d0 100644 --- a/client/src/router.js +++ b/client/src/router.js @@ -46,7 +46,9 @@ const router = new Router({ localStorage["myname"] = res.name; localStorage["myid"] = res.id; } - next("/"); + // TODO: I don't like these 2 lines, "next('/')" should be enough + window.location = "/"; + next(); } ); },