code: prolonging font check timeout

This commit is contained in:
ShawnPhang 2023-09-12 12:59:41 +08:00
parent 5a89f6440a
commit 551475404e

View File

@ -61,7 +61,7 @@ export default defineComponent({
if (item.fontClass && item.fontClass.value) {
const loader = new FontFaceObserver(item.fontClass.value)
fontData.push(item.fontClass)
fontLoaders.push(loader.load())
fontLoaders.push(loader.load(null, 30000)) //
//
if (fontContent[item.fontClass.value]) {
fontContent[item.fontClass.value] += item.text