mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
fixed memory
This commit is contained in:
parent
1dc0e43396
commit
5c23412d75
1 changed files with 10 additions and 0 deletions
|
@ -307,6 +307,9 @@ function activateFunbox(funbox, mode) {
|
|||
$("#funBoxTheme").attr("href", ``);
|
||||
if (funbox === "none") {
|
||||
activeFunBox = "none";
|
||||
memoryFunboxInterval = clearInterval(memoryFunboxInterval);
|
||||
memoryFunboxTimer = null;
|
||||
$('#wordsWrapper').removeClass('hidden');
|
||||
}
|
||||
if (mode === "style") {
|
||||
if (funbox != undefined) {
|
||||
|
@ -2505,6 +2508,13 @@ function startTest() {
|
|||
array: [],
|
||||
},
|
||||
};
|
||||
|
||||
if (activeFunBox === "memory") {
|
||||
memoryFunboxInterval = clearInterval(memoryFunboxInterval);
|
||||
memoryFunboxTimer = null;
|
||||
$('#wordsWrapper').addClass('hidden');
|
||||
}
|
||||
|
||||
try {
|
||||
if (config.paceCaret !== "off") movePaceCaret(performance.now() + (paceCaret.spc * 1000));
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue