Small fix in rules rendering
[vchess.git] / client / src / main.js
index 28b7f86..22fe0cd 100644 (file)
@@ -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