mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-15 11:54:24 +08:00
fix test not working
This commit is contained in:
parent
f8852583c7
commit
6a9aaefe5f
1 changed files with 6 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ import {
|
|||
getActiveFunboxNames,
|
||||
} from "../../test/funbox/list";
|
||||
import * as TribeState from "../../tribe/tribe-state";
|
||||
import { CLIENT_STATE } from "../../tribe/types";
|
||||
|
||||
export async function handleTab(e: KeyboardEvent, now: number): Promise<void> {
|
||||
if (Config.quickRestart === "tab") {
|
||||
|
|
@ -145,7 +146,11 @@ async function handleFunboxes(
|
|||
}
|
||||
|
||||
export async function onKeydown(event: KeyboardEvent): Promise<void> {
|
||||
if (!TribeState.isRaceActive()) {
|
||||
if (
|
||||
TribeState.getState() === CLIENT_STATE.CONNECTED &&
|
||||
TribeState.isInARoom() &&
|
||||
!TribeState.isRaceActive()
|
||||
) {
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue