There was an error while loading. Please reload this page.
1 parent 2d605bc commit eba7a6bCopy full SHA for eba7a6b
1 file changed
js/libs/loader.js
@@ -77,7 +77,7 @@ const loadAdditionalFont = (c) => {
77
* @param {string} font
78
* @returns {Promise<void>}
79
*/
80
- const loadCss = (font) => c.get(font)
+ const loadFont = (font) => c.get(font)
81
.then(window.fetch)
82
.then((r) => r.text())
83
.then((txt) => {
@@ -102,7 +102,7 @@ const loadAdditionalFont = (c) => {
102
document.head.appendChild(link);
103
}));
104
105
- return Promise.all(fonts.map(loadCss));
+ return Promise.all(fonts.map(loadFont));
106
};
107
108
/**
0 commit comments