fix(test): apply highlight mode when loading (mitjans) (#5533)

This commit is contained in:
Carles Mitjans 2024-06-27 13:29:26 +02:00 committed by GitHub
parent 29bd0df379
commit 3346b3891a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,9 +155,9 @@ ConfigEvent.subscribe((eventKey, eventValue, nosave) => {
if (eventKey === "theme") void applyBurstHeatmap();
if (eventValue === undefined) return;
if (eventKey === "highlightMode" && ActivePage.get() === "test") {
if (eventKey === "highlightMode") {
highlightMode(eventValue as SharedTypes.Config.HighlightMode);
updateActiveElement();
if (ActivePage.get() === "test") updateActiveElement();
}
if (typeof eventValue !== "boolean") return;