1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00

added time based update reminder (informing people on dev branch and ones with broken chrome auto-update mechanism)

This commit is contained in:
cTn 2014-08-17 13:29:07 +02:00 committed by Dominic Clifton
parent 9e5edbbf6b
commit 90da15b14c
2 changed files with 7 additions and 0 deletions

View file

@ -1,6 +1,7 @@
'use strict'; 'use strict';
var CONFIGURATOR = { var CONFIGURATOR = {
'releaseDate': 1408273765004, // 08.17.2014
'firmwareVersionAccepted': 2.3, 'firmwareVersionAccepted': 2.3,
'connectionValid': false, 'connectionValid': false,
'mspPassThrough': false, 'mspPassThrough': false,

View file

@ -42,6 +42,12 @@ $(document).ready(function () {
break; break;
} }
// check release time to inform people in case they are running old release
if (CONFIGURATOR.releaseDate < (new Date().getTime() - (86400000 * 60))) { // 1 day = 86400000 miliseconds, * 60 = 2 month window
GUI.log('You\'re using an old version of Baseflight - Configurator. Please update so you can benefit from recently added features and bugfixes.');
}
// Tabs // Tabs
var ui_tabs = $('#tabs > ul'); var ui_tabs = $('#tabs > ul');
$('a', ui_tabs).click(function () { $('a', ui_tabs).click(function () {