Fix a rendering issue in the moves file

This commit is contained in:
Nick Chambers 2021-01-10 17:19:02 -06:00
parent 7f2a0cd884
commit e9d6434c88
1 changed files with 3 additions and 3 deletions

View File

@ -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;