From df58d764d432ba3ed2fcff765d61f23aad552233 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Thu, 7 Dec 2023 17:57:58 +0100 Subject: [PATCH] Fix flash button color --- src/js/serial_backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/serial_backend.js b/src/js/serial_backend.js index c351a0026b..c505a29d7e 100644 --- a/src/js/serial_backend.js +++ b/src/js/serial_backend.js @@ -616,7 +616,7 @@ function connectCli() { } function onConnect() { - if ($('div#flashbutton a.flash_state').hasClass('active') && $('div#flashbutton a.flash').hasClass('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').removeClass('active'); }