mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-26 18:09:40 +08:00
refactor: only calling ui functions when on the test page
This commit is contained in:
parent
ee340f4e22
commit
60570459cb
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ ConfigEvent.subscribe((eventKey, eventValue, nosave) => {
|
|||
if (eventKey === "theme") void applyBurstHeatmap();
|
||||
|
||||
if (eventValue === undefined) return;
|
||||
if (eventKey === "highlightMode") {
|
||||
if (eventKey === "highlightMode" && ActivePage.get() === "test") {
|
||||
highlightMode(eventValue as SharedTypes.Config.HighlightMode);
|
||||
updateActiveElement();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue