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 */ |
|||
|
|||
const path = require('path') |
|||
const pkg = require('../package.json') |
|||
|
|||
let pkg |
|||
try { |
|||
const distDir = path.dirname(process.execPath) |
|||
pkg._npmPkg = require(path.join(distDir, '../../package.json')) |
|||
pkg = require('../package.json') |
|||
} catch (err) { |
|||
pkg._npmPkg = null |
|||
pkg = require('../../package.json') |
|||
} |
|||
|
|||
module.exports = pkg |
|||
|
Loading…
Reference in new issue