1
0
Fork 0
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:
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

@ -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 () {