X-Git-Url: https://git.auder.net/doc/index.css?a=blobdiff_plain;f=public%2Fjavascripts%2Fbase_rules.js;h=a40012258a6b5fbd2b0751af67a9d9f79641e334;hb=5e622704f17b93bf2d475f333416df921cf16410;hp=0868a3670178e8a855786f9b422f9d38ca52478b;hpb=46302e643947a66a5593a8eb1140d314effcea95;p=vchess.git
diff --git a/public/javascripts/base_rules.js b/public/javascripts/base_rules.js
index 0868a367..a4001225 100644
--- a/public/javascripts/base_rules.js
+++ b/public/javascripts/base_rules.js
@@ -1030,7 +1030,7 @@ class ChessRules
let pgn = "";
pgn += '[Site "vchess.club"]
';
const d = new Date();
- const opponent = this.mode=="human" ? "Anonymous" : "Computer";
+ const opponent = mode=="human" ? "Anonymous" : "Computer";
pgn += '[Date "' + d.getFullYear() + '-' + (d.getMonth()+1) + '-' + d.getDate() + '"]
';
pgn += '[White "' + (mycolor=='w'?'Myself':opponent) + '"]
';
pgn += '[Black "' + (mycolor=='b'?'Myself':opponent) + '"]
';