mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +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
6
main.js
6
main.js
|
@ -42,6 +42,12 @@ $(document).ready(function () {
|
|||
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
|
||||
var ui_tabs = $('#tabs > ul');
|
||||
$('a', ui_tabs).click(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue