only trigger update notification on upgrade, bump version, update dev changelog

10.3.x-maintenance
cTn 2014-09-08 12:14:41 +02:00
parent 125be0271f
commit 78b282f458
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
<span>xx.xx.2014 - 0.51</span>
<p>
- Small global UI revamp to utilize space little bit better<br />
- Online Firmware can be saved locally<br />
- Added missing model information for custom model<br />
</p>
<span>08.31.2014 - 0.50</span> <span>08.31.2014 - 0.50</span>
<p> <p>
- Small UI revamp for Firmware Flasher<br /> - Small UI revamp for Firmware Flasher<br />

View File

@ -75,11 +75,11 @@ chrome.app.runtime.onLaunched.addListener(function () {
chrome.runtime.onInstalled.addListener(function (details) { chrome.runtime.onInstalled.addListener(function (details) {
if (details.reason == 'update') { if (details.reason == 'update') {
var previousVersionArr = details.previousVersion.split('.'); var previousVersionArr = details.previousVersion.split('.'),
var currentVersionArr = chrome.runtime.getManifest().version.split('.'); currentVersionArr = chrome.runtime.getManifest().version.split('.');
// only fire up notification sequence when one of the major version numbers changed // 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) { chrome.storage.local.get('update_notify', function (result) {
if (result.update_notify === 'undefined' || result.update_notify) { if (result.update_notify === 'undefined' || result.update_notify) {
var manifest = chrome.runtime.getManifest(); var manifest = chrome.runtime.getManifest();

View File

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"minimum_chrome_version": "36", "minimum_chrome_version": "36",
"version": "0.50", "version": "0.51",
"author": "cTn", "author": "cTn",
"name": "Baseflight - Configurator", "name": "Baseflight - Configurator",