Fix version check logic

This commit is contained in:
Alex Liebowitz 2016-06-30 00:35:56 -04:00
parent 5f7c4a8121
commit c5d93f7bb1
3 changed files with 2 additions and 3 deletions

BIN
dist.zip

Binary file not shown.

View file

@ -32,11 +32,10 @@ var App = React.createClass({
// On OS X with version <= 0.2.2, we need to notify user to close manually close LBRY
message += '\n\nBefore installing the new version, make sure to exit LBRY, if you started the app ' +
'click that LBRY icon in your status bar and choose "Quit."';
} else {
lbry.stop();
}
if (window.confirm(message)) {
lbry.stop();
window.location = 'http://www.lbry.io/get';
};
});

View file

@ -142,7 +142,7 @@ lbry.checkNewVersionAvailable = function(callback) {
var remoteMaj, remoteMin, remotePatch;
[remoteMaj, remoteMin, remotePatch] = versionInfo.remote_lbrynet.split('.');
var newVersionAvailable = (maj < remoteMaj || min < remoteMin || patch < remotePatch);
var newVersionAvailable = !(maj >= remoteMaj && min >= remoteMin && patch >= remotePatch);
callback(newVersionAvailable);
}, function(err) {
if (err.fault == 'NoSuchFunction') {