mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
cleanup
This commit is contained in:
parent
00e5420a2c
commit
388cc3195e
2 changed files with 2 additions and 15 deletions
15
main.js
15
main.js
|
@ -53,9 +53,8 @@ $(document).ready(function() {
|
|||
var self = this;
|
||||
var index = $(self).parent().index();
|
||||
|
||||
// i am using hardcoded index here (for options tab) since i don't have time to write tab locking mechanism at the moment
|
||||
// if there is no active connection, return
|
||||
if (configuration_received == false && index != 9) {
|
||||
if (configuration_received == false) {
|
||||
GUI.log('You need to connect before you can view any of the tabs', 'red');
|
||||
return;
|
||||
}
|
||||
|
@ -101,9 +100,6 @@ $(document).ready(function() {
|
|||
case 'tab_cli':
|
||||
tab_initialize_cli();
|
||||
break;
|
||||
case 'tab_options':
|
||||
tab_initialize_options();
|
||||
break;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -124,15 +120,6 @@ $(document).ready(function() {
|
|||
// translate to user-selected language
|
||||
localize();
|
||||
|
||||
if (configuration_received) {
|
||||
$('a.back').hide();
|
||||
} else {
|
||||
$('a.back').click(function() {
|
||||
$('#tabs > ul li').removeClass('active'); // de-select any selected tabs
|
||||
tab_initialize_default();
|
||||
});
|
||||
}
|
||||
|
||||
// if notifications are enabled, or wasn't set, check the notifications checkbox
|
||||
chrome.storage.local.get('update_notify', function(result) {
|
||||
if (typeof result.update_notify === 'undefined' || result.update_notify) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"manifest_version": 2,
|
||||
"minimum_chrome_version": "33",
|
||||
"version": "0.32",
|
||||
"version": "0.33",
|
||||
|
||||
"author": "cTn",
|
||||
"name": "Baseflight - Configurator",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue