From 5e622704f17b93bf2d475f333416df921cf16410 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Tue, 20 Nov 2018 03:04:37 +0100 Subject: [PATCH] Attempt to fix opponent in PGN (should be OK now) --- public/javascripts/base_rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) + '"]
'; -- 2.44.0