mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 06:15:13 +03:00
Fixes to make cleanflight-configurator code work in betaflight-configurator.
This commit is contained in:
parent
445b9931bb
commit
d011599450
4 changed files with 8 additions and 5 deletions
|
@ -210,7 +210,7 @@ function onOpen(openInfo) {
|
|||
|
||||
// continue as usually
|
||||
CONFIGURATOR.connectionValid = true;
|
||||
GUI.allowedTabs = GUI.defaultAllowedTabsWhenConnected.slice();
|
||||
GUI.allowedTabs = GUI.defaultAllowedFCTabsWhenConnected.slice();
|
||||
if (semver.lt(CONFIG.apiVersion, "1.4.0")) {
|
||||
GUI.allowedTabs.splice(GUI.allowedTabs.indexOf('led_strip'), 1);
|
||||
}
|
||||
|
@ -220,7 +220,7 @@ function onOpen(openInfo) {
|
|||
$('#tabs ul.mode-connected .tab_setup a').click();
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
} else {
|
||||
GUI.show_modal(chrome.i18n.getMessage('warningTitle'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue