Skip to content

Commit

Permalink
Merge branch 'master' of github.com:iNavFlight/inav-configurator
Browse files Browse the repository at this point in the history
  • Loading branch information
DzikuVx committed Feb 13, 2019
2 parents f2f61e8 + 484c3d9 commit f248dfc
Show file tree
Hide file tree
Showing 2 changed files with 1,371 additions and 1,376 deletions.
16 changes: 6 additions & 10 deletions js/appUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@ appUpdater.checkRelease = function (currVersion) {
$.get('https://api.github.com/repos/iNavFlight/inav-configurator/releases', function (releaseData) {
GUI.log('Loaded release information from GitHub.');
//Git return sorted list, 0 - last release
if (semver.gt(releaseData[0].tag_name, currVersion)) {
GUI.log(releaseData[0].tag_name, chrome.runtime.getManifest().version);
GUI.log(currVersion);

//For download zip
// releaseData[0].assets.forEach(function(item, i) {
// if (str.indexOf(item.name) !== -1) {
// console.log(item);
// downloadUrl = item.browser_download_url;
// }
// });
let newVersion = releaseData[0].tag_name;
let newPrerelase = releaseData[0].prerelease;

if (newPrerelase == false && semver.gt(newVersion, currVersion)) {
GUI.log(newVersion, chrome.runtime.getManifest().version);
GUI.log(currVersion);

GUI.log('New version available!');
modalStart = new jBox('Modal', {
Expand Down

0 comments on commit f248dfc

Please sign in to comment.