X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fmain.js;fp=client%2Fsrc%2Fmain.js;h=22fe0cd19de750e0577e95344a79f05041f66b41;hp=28b7f86cf2d880c4322feaa8dc15ac3964c8e41c;hb=c75838d9d5b52d1fbd3e419c5073ef0cfb95f40a;hpb=24340cae41e916d91088cc6988d8838b342a9c42 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