X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fmain.js;h=22fe0cd19de750e0577e95344a79f05041f66b41;hb=2ada153c93cd32deb847707b60b5424aa338803d;hp=703ff7428157184463f28f6c9ae0294148ae1d0c;hpb=85e5b5c1e6192a134fa69182e8c077605fdb969f;p=vchess.git diff --git a/client/src/main.js b/client/src/main.js index 703ff742..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,14 +35,6 @@ new Vue({ // if (!!localStorage["variant"]) // location.hash = "#game?id=" + localStorage["gameId"]; }, - // Later, for icons (if using feather): -// mounted: function() { -// feather.replace(); -// }, - // "mounted" and not "created", because modalWelcome must be filled - mounted: function() { - store.initialize(); - }, }).$mount("#app"); // TODO: get rules, dynamic import