Skip to content

Commit

Permalink
fix(fontshare): return empty array when there's an error
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 21, 2024
1 parent 4c0ffe9 commit 96accaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/fontshare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function initialiseFontMeta () {
}, {
onError () {
logger.error('Could not download `fontshare` font metadata. `@nuxt/fonts` will not be able to inject `@font-face` rules for fontshare.')
return {}
return []
}
})
for (const font of fonts) {
Expand Down

0 comments on commit 96accaa

Please sign in to comment.