// },
created: function() {
window.doClick = (elemId) => { document.getElementById(elemId).click() };
+ store.initialize();
+
+ // TODO: AJAX call get corr games (all variants)
+ // si dernier lastMove sur serveur n'est pas le mien et nextColor == moi, alors background orange
+ // ==> background orange si à moi de jouer par corr (sur main index)
+ // (helper: static fonction "GetNextCol()" dans base_rules.js)
//TODO: si une partie en cours dans storage, rediriger vers cette partie
//(à condition que l'URL n'y corresponde pas déjà !)
// if (!!localStorage["variant"])
// location.hash = "#game?id=" + localStorage["gameId"];
},
- // Later, for icons (if using feather):
-// mounted: function() {
-// feather.replace();
-// },
- mounted: function() {
- store.initialize();
- },
}).$mount("#app");
// TODO: get rules, dynamic import