There was an error while loading. Please reload this page.
2 parents a6a530c + eba7a6b commit 0a02518Copy full SHA for 0a02518
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