mirror of
https://github.com/desktop/desktop
synced 2024-10-31 11:07:25 +00:00
Use __DEV__ instead of checking for the environment.
This commit is contained in:
parent
245fd76da0
commit
199b07cf42
2 changed files with 2 additions and 1 deletions
1
src/lib/globals.ts
Normal file
1
src/lib/globals.ts
Normal file
|
@ -0,0 +1 @@
|
|||
declare var __DEV__: boolean
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue