wait for result

This commit is contained in:
Daniel Sommer 2022-02-28 02:19:02 +01:00
parent 86d213e721
commit 37d5fdcd9b

View file

@ -84,7 +84,7 @@ async function complex(config) {
const tmpConfig = JSON.parse(JSON.stringify(config));
await singleAnimation(tmpConfig, indices[index]);
if (index === 0) {
config = setColorIfRandom(config);
config = await setColorIfRandom(config);
}
config.repetitions.done++;
}