mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 05:03:39 +08:00
reordered function to fix warning
This commit is contained in:
parent
5980e65989
commit
c9367c79f2
1 changed files with 7 additions and 6 deletions
|
|
@ -89,6 +89,13 @@ export function toggleScript(...params) {
|
|||
}
|
||||
}
|
||||
|
||||
export function setFunbox(funbox, mode) {
|
||||
if (funbox === "none") loadMemory();
|
||||
modeSaved = mode;
|
||||
UpdateConfig.setFunbox(funbox, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
export async function activate(funbox) {
|
||||
let mode = modeSaved;
|
||||
|
||||
|
|
@ -240,9 +247,3 @@ export async function activate(funbox) {
|
|||
TestUI.updateModesNotice();
|
||||
return true;
|
||||
}
|
||||
export function setFunbox(funbox, mode) {
|
||||
if (funbox === "none") loadMemory();
|
||||
modeSaved = mode;
|
||||
UpdateConfig.setFunbox(funbox, false);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue