From e9d6434c88523f1d98a18f6c6c311b98bb96f583 Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Sun, 10 Jan 2021 17:19:02 -0600 Subject: [PATCH] Fix a rendering issue in the moves file --- takhta.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/takhta.html b/takhta.html index e1b797a..a777cb0 100644 --- a/takhta.html +++ b/takhta.html @@ -734,11 +734,11 @@ } if(move % 2 === 0) { - if(record.innerHTML.length > longest) { - longest = record.innerHTML.length; + if(record.childNodes[1].nodeValue.length > longest) { + longest = record.childNodes[1].nodeValue.length; } - game[pos] = [record.innerHTML]; + game[pos] = [record.childNodes[1].nodeValue]; } else { game[pos].push(record.innerHTML); pos += 1;