mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use electron version only in fingerprint
This commit is contained in:
@@ -7,7 +7,11 @@ var fingerprintPath = path.resolve(__dirname, '..', '..', 'node_modules', '.atom
|
||||
module.exports = {
|
||||
fingerprint: function () {
|
||||
var packageJson = fs.readFileSync(path.resolve(__dirname, '..', '..', 'package.json'))
|
||||
var body = packageJson.toString() + process.platform + process.version
|
||||
|
||||
//Include the electron minor version in the fingerprint since that changing requires a re-install
|
||||
var electronVersion = JSON.parse(packageJson).electronVersion.replace(/\.\d+$/, '')
|
||||
|
||||
var body = electronVersion + process.platform + process.version
|
||||
return crypto.createHash('sha1').update(body).digest('hex')
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user