projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring: split files into components (not working, broken state)
[vchess.git]
/
public
/
javascripts
/
variant.js
diff --git
a/public/javascripts/variant.js
b/public/javascripts/variant.js
index
736d8b3
..
510ea29
100644
(file)
--- a/
public/javascripts/variant.js
+++ b/
public/javascripts/variant.js
@@
-21,6
+21,10
@@
new Vue({
},
},
});
},
},
});
+
+const continuation = (localStorage.getItem("variant") === variant);
+ if (continuation) //game VS human has priority
+ this.continueGame("human");
// TODO:
// si quand on arrive il y a une continuation "humaine" : display="game" et retour à la partie !
// TODO:
// si quand on arrive il y a une continuation "humaine" : display="game" et retour à la partie !