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

Fix Expert Mode Switch

This commit is contained in:
Mark Haslinghuis 2021-08-04 22:36:41 +02:00
parent 2d268ee115
commit 5c151e0d4f
No known key found for this signature in database
GPG key ID: 198B0F616296A584
2 changed files with 4 additions and 4 deletions

View file

@ -501,12 +501,12 @@ function startProcess() {
});
ConfigStorage.get('permanentExpertMode', function (result) {
const experModeCheckbox = 'input[name="expertModeCheckbox"]';
const expertModeCheckbox = 'input[name="expertModeCheckbox"]';
if (result.permanentExpertMode) {
$(experModeCheckbox).prop('checked', true);
$(expertModeCheckbox).prop('checked', true);
}
$(experModeCheckbox).change(function () {
$(expertModeCheckbox).change(function () {
const checked = $(this).is(':checked');
checkSetupAnalytics(function (analyticsService) {
analyticsService.setDimension(analyticsService.DIMENSIONS.CONFIGURATOR_EXPERT_MODE, checked ? 'On' : 'Off');