Skip to content

Commit 0a02518

Browse files
authored
Merge pull request #72 from dewanakl/improve-lcp
fix: typo func name
2 parents a6a530c + eba7a6b commit 0a02518

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)