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

.addclass to .hasclass

This commit is contained in:
timman2er 2018-10-09 12:52:15 +02:00
parent b6f3f11ce6
commit 36c5a93dd8

View file

@ -173,7 +173,7 @@ function startProcess() {
GUI.tab_switch_cleanup(function () { GUI.tab_switch_cleanup(function () {
// disable active firmware flasher if it was active // disable active firmware flasher if it was active
if ($('div#flashbutton a.flash_state').hasClass('active') && $('div#flashbutton a.flash').addClass('active')) { if ($('div#flashbutton a.flash_state').hasClass('active') && $('div#flashbutton a.flash').hasClass('active')) {
$('div#flashbutton a.flash_state').removeClass('active'); $('div#flashbutton a.flash_state').removeClass('active');
$('div#flashbutton a.flash').removeClass('active'); $('div#flashbutton a.flash').removeClass('active');
} }