Browse Source
* Revert "Only show update notifications when loaded from npm (#606)" This reverts commitmaster3ef666ba8d
. * Revert "Brought the update notification back" This reverts commit5d3d9d4f37
.
Matheus Fernandes
8 years ago
committed by
Guillermo Rauch
2 changed files with 4 additions and 7 deletions
@ -1,13 +1,10 @@ |
|||||
/* eslint-disable import/no-unresolved */ |
/* eslint-disable import/no-unresolved */ |
||||
|
|
||||
const path = require('path') |
let pkg |
||||
const pkg = require('../package.json') |
|
||||
|
|
||||
try { |
try { |
||||
const distDir = path.dirname(process.execPath) |
pkg = require('../package.json') |
||||
pkg._npmPkg = require(path.join(distDir, '../../package.json')) |
|
||||
} catch (err) { |
} catch (err) { |
||||
pkg._npmPkg = null |
pkg = require('../../package.json') |
||||
} |
} |
||||
|
|
||||
module.exports = pkg |
module.exports = pkg |
||||
|
Loading…
Reference in new issue