1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

Fixes to make cleanflight-configurator code work in betaflight-configurator.

This commit is contained in:
mikeller 2017-04-30 21:56:03 +12:00 committed by Michael Keller
parent 445b9931bb
commit d011599450
4 changed files with 8 additions and 5 deletions

View file

@ -210,7 +210,7 @@ function onOpen(openInfo) {
// continue as usually // continue as usually
CONFIGURATOR.connectionValid = true; CONFIGURATOR.connectionValid = true;
GUI.allowedTabs = GUI.defaultAllowedTabsWhenConnected.slice(); GUI.allowedTabs = GUI.defaultAllowedFCTabsWhenConnected.slice();
if (semver.lt(CONFIG.apiVersion, "1.4.0")) { if (semver.lt(CONFIG.apiVersion, "1.4.0")) {
GUI.allowedTabs.splice(GUI.allowedTabs.indexOf('led_strip'), 1); GUI.allowedTabs.splice(GUI.allowedTabs.indexOf('led_strip'), 1);
} }
@ -220,7 +220,7 @@ function onOpen(openInfo) {
$('#tabs ul.mode-connected .tab_setup a').click(); $('#tabs ul.mode-connected .tab_setup a').click();
}); });
}); });
} });
}); });
} else { } else {
GUI.show_modal(chrome.i18n.getMessage('warningTitle'), GUI.show_modal(chrome.i18n.getMessage('warningTitle'),

View file

@ -9,7 +9,8 @@ TABS.power.initialize = function (callback) {
if (GUI.active_tab != 'power') { if (GUI.active_tab != 'power') {
GUI.active_tab = 'power'; GUI.active_tab = 'power';
googleAnalytics.sendAppView('Power'); // Disabled on merge into betaflight-configurator
//googleAnalytics.sendAppView('Power');
} }
function load_status() { function load_status() {

View file

@ -8,7 +8,8 @@ TABS.setup_osd.initialize = function (callback) {
if (GUI.active_tab != 'setup_osd') { if (GUI.active_tab != 'setup_osd') {
GUI.active_tab = 'setup_osd'; GUI.active_tab = 'setup_osd';
googleAnalytics.sendAppView('Setup OSD'); // Disabled on merge into betaflight-configurator
//googleAnalytics.sendAppView('Setup OSD');
} }
function load_status() { function load_status() {

View file

@ -42,7 +42,8 @@ TABS.transponder.initialize = function(callback, scrollPosition) {
if ( GUI.active_tab != 'transponder' ) { if ( GUI.active_tab != 'transponder' ) {
GUI.active_tab = 'transponder'; GUI.active_tab = 'transponder';
googleAnalytics.sendAppView('Transponder'); // Disabled on merge into betaflight-configurator
//googleAnalytics.sendAppView('Transponder');
} }
// transponder supported added in MSP API Version 1.16.0 // transponder supported added in MSP API Version 1.16.0
if ( CONFIG ) { if ( CONFIG ) {