mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-26 00:37:37 +08:00
dirty fix to remove console errors
This commit is contained in:
parent
27d78d1e7e
commit
94d287289c
1 changed files with 8 additions and 6 deletions
|
|
@ -3034,12 +3034,14 @@ async function loadWordsHistory() {
|
|||
}
|
||||
}
|
||||
wordEl += "</div>";
|
||||
}catch (e) {
|
||||
wordEl = "<div class='word'>";
|
||||
for (let c = 0; c < wordsList[i].length; c++) {
|
||||
wordEl += "<letter>" + wordsList[i][c] + "</letter>";
|
||||
}
|
||||
wordEl += "</div>"
|
||||
} catch (e) {
|
||||
try{
|
||||
wordEl = "<div class='word'>";
|
||||
for (let c = 0; c < wordsList[i].length; c++) {
|
||||
wordEl += "<letter>" + wordsList[i][c] + "</letter>";
|
||||
}
|
||||
wordEl += "</div>"
|
||||
}catch(e){}
|
||||
}
|
||||
$("#words").append(wordEl);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue