Skip to content

Commit eba7a6b

Browse files
committed
fix: typo func name
1 parent 2d605bc commit eba7a6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/libs/loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const loadAdditionalFont = (c) => {
7777
* @param {string} font
7878
* @returns {Promise<void>}
7979
*/
80-
const loadCss = (font) => c.get(font)
80+
const loadFont = (font) => c.get(font)
8181
.then(window.fetch)
8282
.then((r) => r.text())
8383
.then((txt) => {
@@ -102,7 +102,7 @@ const loadAdditionalFont = (c) => {
102102
document.head.appendChild(link);
103103
}));
104104

105-
return Promise.all(fonts.map(loadCss));
105+
return Promise.all(fonts.map(loadFont));
106106
};
107107

108108
/**

0 commit comments

Comments
 (0)