mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
fix(funbox): text altering funboxes not working with wikipedia or poetry
This commit is contained in:
parent
9b8c452064
commit
0ccf7ea920
|
@ -478,8 +478,12 @@ export async function generateWords(
|
|||
for (let i = 0; i < funboxSection.length; i++) {
|
||||
indexes.push(i);
|
||||
}
|
||||
const ret = [];
|
||||
for (const word of funboxSection) {
|
||||
ret.push(applyFunboxesToWord(word));
|
||||
}
|
||||
return {
|
||||
words: funboxSection,
|
||||
words: ret,
|
||||
sectionIndexes: indexes,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue