X-Git-Url: https://git.auder.net/images/pieces/current/gitweb.js?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fmain.js;h=22fe0cd19de750e0577e95344a79f05041f66b41;hb=4d64881e3b2dc55fe260a53195f9f3bc2e959fdf;hp=28b7f86cf2d880c4322feaa8dc15ac3964c8e41c;hpb=7c3cd3794ee13c41fc623179f7d4142d0d3e74da;p=vchess.git diff --git a/client/src/main.js b/client/src/main.js index 28b7f86c..22fe0cd1 100644 --- a/client/src/main.js +++ b/client/src/main.js @@ -20,6 +20,7 @@ new Vue({ // }, 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 @@ -34,13 +35,6 @@ new Vue({ // if (!!localStorage["variant"]) // location.hash = "#game?id=" + localStorage["gameId"]; }, - // Later, for icons (if using feather): -// mounted: function() { -// feather.replace(); -// }, - created: function() { - store.initialize(); - }, }).$mount("#app"); // TODO: get rules, dynamic import