mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-26 01:35:23 +03:00
update check disabled
This commit is contained in:
parent
638cf92048
commit
604adf7dae
2 changed files with 0 additions and 10 deletions
|
@ -1,8 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
var CONFIGURATOR = {
|
||||
'releaseDate': 1478083274093, // new Date().getTime() - Wed Nov 02 2016 20:41:30 GMT+1000
|
||||
|
||||
// all versions are specified and compared using semantic versioning http://semver.org/
|
||||
'apiVersionAccepted': '1.2.1',
|
||||
'backupRestoreMinApiVersionAccepted': '1.5.0',
|
||||
|
|
8
main.js
8
main.js
|
@ -38,14 +38,6 @@ $(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
|
||||
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');
|
||||
GUI.log('You are using an old version of ' + chrome.runtime.getManifest().name + '. There may be a more recent version with improvements and fixes.');
|
||||
}
|
||||
|
||||
chrome.storage.local.get('logopen', function (result) {
|
||||
if (result.logopen) {
|
||||
$("#showlog").trigger('click');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue