mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Merge pull request #10645 from atom/only-finger-print-electron-version
Only use electron version in fingerprint
This commit is contained in:
commit
d50e7df414
@ -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')
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user