projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Save state (Hall + sockets.js)
[vchess.git]
/
client
/
src
/
main.js
diff --git
a/client/src/main.js
b/client/src/main.js
index
703ff74
..
22fe0cd
100644
(file)
--- 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() };
// },
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
// 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"];
},
// 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
}).$mount("#app");
// TODO: get rules, dynamic import