Advance on users management. TODO: routes/users + debug + test
[vchess.git] / public / javascripts / variant.js
index 510ea29..1ec4d89 100644 (file)
@@ -1,5 +1,5 @@
 new Vue({
-       el: "#variantPage",
+       el: "#VueElement",
        data: {
                display: "room", //default: main hall
                gameid: "undefined", //...yet
@@ -22,9 +22,9 @@ new Vue({
        },
 });
                
-const continuation = (localStorage.getItem("variant") === variant);
-                       if (continuation) //game VS human has priority
-                               this.continueGame("human");
+//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 !