mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-11 01:44:50 +08:00
syncing custom text
This commit is contained in:
parent
0199c7af5b
commit
95be6afc6e
2 changed files with 4 additions and 0 deletions
|
|
@ -4256,6 +4256,7 @@ $("#customTextPopup .button").click(() => {
|
|||
manualRestart = true;
|
||||
restartTest();
|
||||
hideCustomTextPopup();
|
||||
mp_syncConfig();
|
||||
});
|
||||
|
||||
function showCustomMode2Popup(mode) {
|
||||
|
|
|
|||
|
|
@ -137,6 +137,7 @@ function mp_applyRoomConfig(cfg) {
|
|||
activateFunbox(cfg.funbox, null, true);
|
||||
setStopOnError(cfg.stopOnError, true, true);
|
||||
setConfidenceMode(cfg.confidenceMode, true, true);
|
||||
customText = cfg.customText;
|
||||
}
|
||||
|
||||
function mp_checkIfCanChangeConfig(mp) {
|
||||
|
|
@ -175,6 +176,7 @@ function mp_syncConfig() {
|
|||
funbox: activeFunBox,
|
||||
stopOnError: config.stopOnError,
|
||||
confidenceMode: config.confidenceMode,
|
||||
customText: customText,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
@ -987,6 +989,7 @@ $(".pageTribe #createPrivateRoom").click((f) => {
|
|||
funbox: activeFunBox,
|
||||
stopOnError: config.stopOnError,
|
||||
confidenceMode: config.confidenceMode,
|
||||
customText: customText,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue