Use __DEV__ instead of checking for the environment.

This commit is contained in:
joshaber 2016-06-23 09:47:19 -04:00
parent 245fd76da0
commit 199b07cf42
2 changed files with 2 additions and 1 deletions

1
src/lib/globals.ts Normal file
View file

@ -0,0 +1 @@
declare var __DEV__: boolean

View file

@ -75,7 +75,7 @@ app.on('ready', () => {
// TODO: Plumb the logged in .com user through here.
// Truly we have been haacked.
autoUpdater.setFeedURL(getFeedURL('haacked'))
if (process.env.NODE_ENV !== 'development') {
if (__DEV__) {
try {
autoUpdater.checkForUpdates()
} catch (e) {