Skip to content
This repository has been archived by the owner on Apr 26, 2019. It is now read-only.

Commit

Permalink
Don't check for updates on first run.
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkz committed Mar 5, 2017
1 parent a7304d8 commit 45ab976
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ const winUpdateFeed = 'https://hotsba-nuts.herokuapp.com/update/win/';
var win = null;

let devMode = (process.env.NODE_ENV == 'development') || (argv.NODE_ENV == 'development');
let isFirstRun = argv["squirrel-firstrun"];

if (!devMode) {
if (!devMode && !isFirstRun) {
updateFeed = os === 'darwin' ? osxUpdateFeed : winUpdateFeed;
}

Expand Down

0 comments on commit 45ab976

Please sign in to comment.