mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 08:45:28 +03:00
display date warning after 91 days.
This commit is contained in:
parent
8ff238bf14
commit
aba4569e50
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
@ -36,7 +36,7 @@ $(document).ready(function () {
|
|||
}
|
||||
|
||||
// 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
|
||||
if (CONFIGURATOR.releaseDate > (new Date().getTime() - (86400000 * 91))) { // 1 day = 86400000 miliseconds, * 91 = 3 month window
|
||||
console.log('Application version is valid for another: ' + Math.round((CONFIGURATOR.releaseDate - (new Date().getTime() - (86400000 * 60))) / 86400000) + ' days');
|
||||
} else {
|
||||
console.log('Application version expired');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue