Skip to content

Commit

Permalink
fix: revert timestamp change #31
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 committed Nov 2, 2018
1 parent 226a920 commit 329e4cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fromPgn.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ class Parser extends EventEmitter {
array[j] = parseInt(data.slice(i, i+2), 16)
}
} else {
console.log(pgn_data)

mainFields.forEach((key, index) => {
var val = split[index]
pgn[key] = key === 'timestamp' ? val : Number(val)
Expand Down

0 comments on commit 329e4cf

Please sign in to comment.