Do not use unsupported forEach.
This commit is contained in:
parent
48ba11d6a1
commit
7ea4f0f7d9
1 changed files with 4 additions and 3 deletions
|
|
@ -36,11 +36,12 @@ const FontsBlock = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
let fontStr = '';
|
let fontStr = '';
|
||||||
fontList.forEach((item) => {
|
for (var i=0; i < fontList.length; i++) {
|
||||||
|
var item = fontList[i];
|
||||||
if (detect(item.font)) {
|
if (detect(item.font)) {
|
||||||
fontStr += `${item.font}, `;
|
fontStr += `${item.font}`
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
fontsEl.textContent = fontStr.slice(0, -2);
|
fontsEl.textContent = fontStr.slice(0, -2);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue