Refactoring: split files into components (not working, broken state)
[vchess.git] / public / javascripts / variant.js
index 736d8b3..510ea29 100644 (file)
@@ -21,6 +21,10 @@ new Vue({
                },
        },
 });
+               
+const continuation = (localStorage.getItem("variant") === variant);
+                       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 !