projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix newgame bug (seek-cancel-seek should not create a game)
[vchess.git]
/
public
/
javascripts
/
components
/
game.js
diff --git
a/public/javascripts/components/game.js
b/public/javascripts/components/game.js
index
1178b64
..
9ecba0c
100644
(file)
--- a/
public/javascripts/components/game.js
+++ b/
public/javascripts/components/game.js
@@
-667,6
+667,7
@@
Vue.component('my-game', {
return; //no newgame while playing
if (this.seek)
{
+ this.conn.send(JSON.stringify({code:"cancelnewgame"}));
delete localStorage["newgame"]; //cancel game seek
this.seek = false;
}