Skip to content
Permalink
Browse files

Record Tool version number in each match

  • Loading branch information...
dougmill committed Feb 16, 2019
1 parent 416d56f commit 4fd1418ddf1c0b1e076b4bdfe4c95e27937090f1
Showing with 3 additions and 0 deletions.
  1. +3 −0 window_background/background.js
@@ -1662,6 +1662,9 @@ function saveMatch(matchId) {

match.gameStats = matchGameStats;

// Convert string "2.2.19" into number for easy comparison, 1 byte per part, allowing for versions up to 255.255.255
match.toolVersion = electron.remote.app.getVersion().split('.').reduce((acc, cur) => (+acc) * 256 + (+cur));

console.log("Save match:", match);
var matches_index = store.get('matches_index');

0 comments on commit 4fd1418

Please sign in to comment.
You can’t perform that action at this time.