Skip to content

Commit

Permalink
Add node version to debug log
Browse files Browse the repository at this point in the history
The chrome, electron, and signal versions are already included in the
user agent string.

// FREEBIE
  • Loading branch information
liliakai authored and scottnonnenberg committed Sep 14, 2017
1 parent 112f5a0 commit 878b15c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/debugLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
};
console.get = function() {
return window.navigator.userAgent +
' Signal-Desktop/' + window.config.version +
' node/' + window.config.node_version +
'\n' + log.print();
};
console.post = function(log) {
Expand Down
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ function createWindow () {
version: package_json.version,
buildExpiration: config.get('buildExpiration'),
serverUrl: config.get('serverUrl'),
environment: environment
environment: environment,
node_version: process.versions.node
}
}))

Expand Down

0 comments on commit 878b15c

Please sign in to comment.