projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TODO: modalSettings + finish game.js for other scenarios
[vchess.git]
/
public
/
javascripts
/
variant.js
diff --git
a/public/javascripts/variant.js
b/public/javascripts/variant.js
index
74c4298
..
c1ba857
100644
(file)
--- a/
public/javascripts/variant.js
+++ b/
public/javascripts/variant.js
@@
-12,7
+12,7
@@
new Vue({
userColor: "w",
allowChat: false,
userColor: "w",
allowChat: false,
- allowMovelist:
fals
e,
+ allowMovelist:
tru
e,
fen: V.GenRandInitFen(),
},
created: function() {
fen: V.GenRandInitFen(),
},
created: function() {
@@
-22,6
+22,7
@@
new Vue({
this.myid = "abcdefghij";
//console.log(this.myid + " " + variant);
this.myid = "abcdefghij";
//console.log(this.myid + " " + variant);
+ //myid: localStorage.getItem("myid"), //our ID, always set
this.conn = new WebSocket(socketUrl + "/?sid=" + this.myid + "&page=" + variant.id);
const socketCloseListener = () => {
this.conn = new WebSocket(socketUrl + "/?sid=" + this.myid + "&page=" + variant.id);
const socketCloseListener = () => {