mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +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:
parent
9e5edbbf6b
commit
90da15b14c
2 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||||
|
|
6
main.js
6
main.js
|
@ -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 () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue