stopping mode changing while test is restarting. closes #1025

This commit is contained in:
Miodec 2021-02-24 17:04:02 +00:00
parent 5b343306a9
commit 6b5cdc8569

View file

@ -3392,6 +3392,7 @@ function changePage(page) {
}
function setMode(mode, nosave) {
if (testRestarting) return;
if (mode !== "words" && activeFunBox === "memory") {
Notifications.add("Memory funbox can only be used with words mode.", 0);
return;