mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-07 07:54:04 +08:00
funbox fix, version up
This commit is contained in:
parent
d833a14b3c
commit
e7e0adc6ac
2 changed files with 3 additions and 3 deletions
|
|
@ -313,7 +313,7 @@ async function activateFunbox(funbox, mode, mp = false) {
|
|||
if (!mp_checkIfCanChangeConfig(mp)) {
|
||||
return;
|
||||
}
|
||||
if (testActive || resultVisible) {
|
||||
if (testActive || (resultVisible && MP.state < 10)) {
|
||||
Notifications.add(
|
||||
"You can only change the funbox before starting a test.",
|
||||
0
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ let MP = {
|
|||
maxReconnectionAttempts: 1,
|
||||
activePage: "preloader",
|
||||
pageTransition: false,
|
||||
expectedVersion: "0.5.0",
|
||||
expectedVersion: "0.5.1",
|
||||
};
|
||||
|
||||
let tribeSounds = {
|
||||
|
|
@ -141,7 +141,7 @@ function mp_applyRoomConfig(cfg) {
|
|||
|
||||
function mp_checkIfCanChangeConfig(mp) {
|
||||
if (MP.state >= 10) {
|
||||
if (MP.state >= 20) {
|
||||
if (MP.state >= 20 && MP.state < 29) {
|
||||
Notifications.add("You can't change settings during the test", 0);
|
||||
return false;
|
||||
} else if (MP.room.isLeader) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue