Attempt to clarify installation instructions a little
[vchess.git] / client / src / store.js
index 40e0ac2..f8b6b24 100644 (file)
@@ -19,7 +19,7 @@ export const store = {
       "X-Requested-With": "XMLHttpRequest"
     };
     fetch(
-      params.serverUrl + "/variants",
+      params.serverUrl + "/allvarslist",
       {
         method: "GET",
         headers: headers
@@ -42,7 +42,7 @@ export const store = {
     }
     // Quick user setup using local storage:
     this.state.user = {
-      id: localStorage.getItem("myid") || 0,
+      id: parseInt(localStorage.getItem("myid") || "0", 10),
       name: localStorage.getItem("myname") || "", //"" for "anonymous"
       email: "", //unknown yet
       notify: false, //email notifications