mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 05:17:51 +08:00
returning if previous and current is the same
This commit is contained in:
parent
a7b255cdc1
commit
f911673f5d
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ export function hide() {
|
|||
}
|
||||
|
||||
export function update(previous, current) {
|
||||
if (previous == current) return;
|
||||
$("#top .config .mode .text-button").removeClass("active");
|
||||
$("#top .config .mode .text-button[mode='" + current + "']").addClass(
|
||||
"active"
|
||||
|
|
Loading…
Reference in a new issue