Skip to content

Commit

Permalink
Merge pull request #14 from claudemuller/master
Browse files Browse the repository at this point in the history
Node_modules and releases repository purging
  • Loading branch information
claudemuller authored Feb 22, 2017
2 parents 3ad8d05 + 717ec5e commit e3617b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
Binary file modified .gitignore
Binary file not shown.
30 changes: 14 additions & 16 deletions app/controllers/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,20 @@ function($scope, $timeout, $filter, $interval, ngDraggable, $http){
$scope.appVersion = pjson.version;
// console.log(require('electron').remote.app.getVersion());

// Get notifications from ffftp.site
$http({method: 'GET', url: 'http://www.ffftp.site/appupdate.json'
}).success(function(data){
$timeout(function() {
console.log(data);
if(data.version != $scope.appVersion.toString()){
$scope.showUpdate = true;
}
}, 0);
}).error(function(){
console.log("Error getting notification");
});
$scope.updateApp = function(){
shell.openExternal('http://ffftp.site/download/'+$scope.appVersion);
}

// Get update notifications from ffftp.site
$http({
method: 'GET',
url: 'http://www.ffftp.site/appupdate.json'
}).then(function success(data) {
if (data.version !== $scope.appVersion.toString()) {
$scope.showUpdate = true;
}
}, function error() {
console.log('Error getting update notification');
});
$scope.updateApp = function() {
shell.openExternal('http://ffftp.site/download/' + $scope.appVersion);
};



Expand Down

0 comments on commit e3617b6

Please sign in to comment.