reordered function to fix warning

This commit is contained in:
Jack 2021-09-14 13:50:35 +01:00
parent 5980e65989
commit c9367c79f2

View file

@ -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;
}