From 78b282f458eefc0f4fd1bb93078b96420e1136af Mon Sep 17 00:00:00 2001 From: cTn Date: Mon, 8 Sep 2014 12:14:41 +0200 Subject: [PATCH] only trigger update notification on upgrade, bump version, update dev changelog --- changelog.html | 6 ++++++ eventPage.js | 6 +++--- manifest.json | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/changelog.html b/changelog.html index 31ac7668..72afe835 100644 --- a/changelog.html +++ b/changelog.html @@ -1,3 +1,9 @@ +xx.xx.2014 - 0.51 +

+ - Small global UI revamp to utilize space little bit better
+ - Online Firmware can be saved locally
+ - Added missing model information for custom model
+

08.31.2014 - 0.50

- Small UI revamp for Firmware Flasher
diff --git a/eventPage.js b/eventPage.js index be72ef57..8b34a0b2 100644 --- a/eventPage.js +++ b/eventPage.js @@ -75,11 +75,11 @@ chrome.app.runtime.onLaunched.addListener(function () { chrome.runtime.onInstalled.addListener(function (details) { if (details.reason == 'update') { - var previousVersionArr = details.previousVersion.split('.'); - var currentVersionArr = chrome.runtime.getManifest().version.split('.'); + var previousVersionArr = details.previousVersion.split('.'), + currentVersionArr = chrome.runtime.getManifest().version.split('.'); // only fire up notification sequence when one of the major version numbers changed - if (currentVersionArr[0] != previousVersionArr[0] || currentVersionArr[1] != previousVersionArr[1]) { + if (currentVersionArr[0] > previousVersionArr[0] || currentVersionArr[1] > previousVersionArr[1]) { chrome.storage.local.get('update_notify', function (result) { if (result.update_notify === 'undefined' || result.update_notify) { var manifest = chrome.runtime.getManifest(); diff --git a/manifest.json b/manifest.json index 68cf4b51..7f742b9f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "minimum_chrome_version": "36", - "version": "0.50", + "version": "0.51", "author": "cTn", "name": "Baseflight - Configurator",