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

move tabs to use esm modules

This commit is contained in:
Tomas Chmelevskij 2022-04-14 22:51:42 +02:00
parent b7d1ec0837
commit 5a74094df1
25 changed files with 350 additions and 218 deletions

View file

@ -1,11 +1,12 @@
'use strict';
import semver from 'semver';
import { i18n } from '../localization';
TABS.power = {
const power = {
supported: false,
analyticsChanges: {},
};
TABS.power.initialize = function (callback) {
power.initialize = function (callback) {
const self = this;
if (GUI.active_tab != 'power') {
@ -534,7 +535,7 @@ TABS.power.initialize = function (callback) {
}
};
TABS.power.cleanup = function (callback) {
power.cleanup = function (callback) {
if (callback) callback();
if (GUI.calibrationManager) {
@ -544,3 +545,6 @@ TABS.power.cleanup = function (callback) {
GUI.calibrationManagerConfirmation.destroy();
}
};
window.TABS.power = power;
export { power };