1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Remove cordova logic (#4000)

remove cordova logic
This commit is contained in:
Tomas Chmelevskij 2024-07-24 15:28:00 +02:00 committed by GitHub
parent 85ceabf51f
commit 295e088aa5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 39 additions and 277 deletions

View file

@ -11,7 +11,6 @@ import MSPCodes from "./msp/MSPCodes";
import PortUsage from "./port_usage";
import PortHandler from "./port_handler";
import CONFIGURATOR, { API_VERSION_1_45, API_VERSION_1_46 } from "./data_storage";
import UI_PHONES from "./phones_ui";
import { bit_check } from './bit.js';
import { sensor_status, have_sensor } from "./sensor_helpers";
import { update_dataflash_global } from "./update_dataflash_global";
@ -163,10 +162,6 @@ function connectDisconnect() {
}
function finishClose(finishedCallback) {
if (GUI.isCordova()) {
UI_PHONES.reset();
}
const wasConnected = CONFIGURATOR.connectionValid;
tracking.sendEvent(tracking.EVENT_CATEGORIES.FLIGHT_CONTROLLER, 'Disconnected', { time: connectionTimestamp ? Date.now() - connectionTimestamp : undefined});
@ -574,10 +569,6 @@ function finishOpen() {
GUI.allowedTabs = Array.from(GUI.defaultAllowedFCTabsWhenConnected);
}
if (GUI.isCordova()) {
UI_PHONES.reset();
}
onConnect();
GUI.selectDefaultTabWhenConnected();