Advance on users management. TODO: routes/users + debug + test
[vchess.git] / public / javascripts / variant.js
index ae576d8..1ec4d89 100644 (file)
@@ -1,7 +1,8 @@
 new Vue({
-       el: "#variantPage",
+       el: "#VueElement",
        data: {
                display: "room", //default: main hall
+               gameid: "undefined", //...yet
        },
        created: function() {
                // TODO: navigation becomes a little more complex
@@ -20,6 +21,10 @@ new Vue({
                },
        },
 });
+               
+//const continuation = (localStorage.getItem("variant") === variant.name);
+//                     if (continuation) //game VS human has priority
+//                             this.continueGame("human");
 
 // TODO:
 // si quand on arrive il y a une continuation "humaine" : display="game" et retour à la partie !