Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
Fix legacy auto-update logic from mistake in review
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods committed Feb 23, 2016
1 parent 28e4d1e commit 420cc6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nwapp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var checkFileExistSync = function(target) {

var legacyCurrentInstallPath;
var legacyNewUpdaterExecutablePath;
if (argv.length === 2 && checkFileExistSync(argv._[0]) && checkFileExistSync(argv._[1])) {
if (argv._.length === 2 && checkFileExistSync(argv._[0]) && checkFileExistSync(argv._[1])) {
// This only happens if we have a pre v3.0.0 desktop app attempting to update to v3+
// FIXME: remove after August 2016
legacyCurrentInstallPath = argv._[0];
Expand Down

0 comments on commit 420cc6e

Please sign in to comment.